ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old September 9th, 2004, 03:10 PM
erikd erikd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Location: NYC
Posts: 81 erikd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 h 19 sec
Reputation Power: 4
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

Reply With Quote
  #2  
Old September 9th, 2004, 04:39 PM
erikd erikd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Location: NYC
Posts: 81 erikd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 h 19 sec
Reputation Power: 4
I just decided to use session variables.
works fine

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > Passing Form Fields to three pages


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway