Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can CF retrive text from a TEXTBOX ?

Status
Not open for further replies.

firesign

Programmer
May 8, 2000
17
IN
hi,<br>&nbsp;&nbsp;I have a textbox on my page and that holds a certian <br>value. Now I need CF to read that value.<br>&nbsp;&nbsp;How do I go about doing something like that ??<br><br>F/S <p> <br><a href=mailto: > </a><br><a href=
 
Using this template:<br>&lt;form action=&quot;actionpage.cfm&quot; method=&quot;post&quot;&gt;<br>&lt;input type=&quot;text&quot; name=&quot;myparam&quot; value=&quot;some text&quot;&gt;<br>&lt;input type=&quot;submit&quot; value=&quot;submit&quot;&gt;<br>&lt;/form&gt;<br><br>You can get the value of the text box on actionpage.cfm by using the parameter form.myparam, like<br>&lt;cfoutput&gt;#form.myparam#&lt;/cfoutput&gt;<br><br>or<br><br>&lt;cfif form.myparam is &quot;some text&quot;&gt;<br>...processing code<br>&lt;/cfif&gt;<br><br>etcetera....<br><br>Hope this helps...:)
 
well yeah ..that works one way ... but the way i want it is<br>like this :<br><br>There are 2 select boxes and a text box.<br>Click on selectbox1 and bunch of values open up in selectbox2<br>click on one of the values in selectbox2 and the<br>text box gets a number.<br><br>notice the numbers are changing all the time. Cause the<br>user can constantly change his choice.<br><br>NOW, consider a variable in CF #tb_val#<br><br>before I click the submit button the CF variable #tb_val#<br>should hold the value of the text box!<br><br>can this be done&nbsp;&nbsp;???<br><br>regards<br>f/s <br><br> <p> <br><a href=mailto: > </a><br><a href=
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top