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

How to pass a variable from a form to a new page??

Status
Not open for further replies.

WuCOng

Technical User
Apr 20, 2001
37
0
0
GB
I need to pass a value from a <select><option> list to another page.

The value is to be used to extract data from a database.

So the first page is essentially a list, and the second a skeleton page, or template, that is filled in according to the choice from the list.

What is the simplaest way to do this? Eg, you select a name and you get taken to a page that displays the person's address.
 
<form action=&quot;page_to_be_sent_to.asp&quot; method=&quot;post&quot;>
<input type=&quot;whatever&quot; name=&quot;dog&quot;>
</form>

that will send the value of &quot;dog&quot; to page_to_be_sent_to.asp

there you can access it throught request(&quot;dog&quot;)

so if you selected &quot;food&quot; from the drop menu then pressed submit.. you could response.write(Request(&quot;dog&quot;)) and see &quot;food&quot;

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top