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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

passing variable

Status
Not open for further replies.

italy

Programmer
Feb 13, 2001
162
US
I have html form and I have select box and the action cf in other hand can you tell me please how this work the selected value in the frist page passing to the second page and shouldn't be passed outomatically on select from the ie and passed as query string or I have to do some thing to pass them it is urgent please and really great help to me thanks .

 
When you submit the form, the value of the selectlist is passed to the next page, you do not have to do anything for this, that's how forms work.

Then you reference your formfields on the next page using FORM.NAME

NAME = the name of the form element.

or URL.NAME for variables posted using the GET method or sent on a link.



Russ Michaels
russ@satachi.com
For my personal book recommendations visit
 
Thanks for your help but how about the simple input box or another variables in the page I assumed the same thing querystring right but why I get error when I refrenced it

<cfif #form1.selected_dept# is &quot;&quot;>

error message variable not exist (from1 is name of form and selected_dept is the name of selected box.

thanks alot for your help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top