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

Form Posting *please help* probably simple!

Status
Not open for further replies.

rossmcl

Programmer
Apr 18, 2000
128
Hi, beginners question I am afraid<br>I have a form with a listbox (Courses), that queries database. The selected listbox entry is then <br>action - method &quot;post&quot; 'ed into another asp page with another listbox (Dates) that uses the method posted from first page in the query to get its contents. I then method post again the selected date into a third asp page.<br>How can I also bring in the Course selected from 1st page into the third page?<br>Is there some way of doing this with action message post in the 2nd page, even though I dont have a listbox for it in the 2nd page?<br>Is it something to do with session variables?<br><br>Clear as mud ? I hope not.<br>Thanks in Advance for any help<br>Ross McLanachan<br>
 
Ross,<br>&nbsp;&nbsp;&nbsp;Session variables will work for what you want to do.&nbsp;&nbsp;In your second page,&nbsp;&nbsp;save the value of the first listbox in a session variable:<br>session(&quot;CourseSelection&quot;) = request.form(&quot;Courses&quot;)<br>then, in the third page you can get the value:<br>response.write &quot;The Course Selection was &quot; & session(&quot;CourseSelection&quot;)<br> <p>nick bulka<br><a href=mailto:nick@bulka.com>nick@bulka.com</a><br><a href= > </a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top