|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Passing Form Fields to three pages
I have three pages and I am trying to pass form data that is specified in the first page to page2, and then from there to page3. Here is what I have so far.
PAGE1 <form name="insertform" method="post" action="page2.cfm" > <select size="1" name="list"> <option value="0" selected>Select a List</option> <option value="list1">option1</option> <option value="list2">option2</option> <option value="list3">option3</option> </select> </form> It works fine when I run the query for it on the second page, and then from there the user has an option of getting a list of names based on the selection from the first page, which I have setup in a form. PAGE2 <form name="insertform" action="page3.cfm" method="post"> <input type="hidden" name="list1" value="#form.list1#"/> <input type="hidden" name="list2" value="#form.list2#"/> <input type="hidden" name="list3" value="#form.list3#"/> <input name="submit" type="image" src="byname.jpg" alt="" width="100" height="39" border="0" /> </form> However a value is never sent on to page 3 when I run the following output. It gives me an error stating that the specified form field cannot be found. <cfoutput>#Variables.list#</cfoutput> I have read so many forums and articles, and I can't figure it out. I don't want to pass it through the URL though. And I am trying to avoid using sessions with it. I was thinking of there might be a way to pass a form value on to different pages. Any help. Thanks |
|
#2
|
|||
|
|||
|
I just decided to use session variables.
works fine |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > Passing Form Fields to three pages |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|