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

problems retrieving values from select list

Status
Not open for further replies.

cm80

Technical User
May 3, 2001
85
US
Hi,
I have a small problem with a select list that I was hoping someone could look at please.

Here is the code I have

<form name=form action=addDB.asp method=post>
<SELECT size=1 name=&quot;category&quot; >
<option value=&quot;accommodation&quot;>Accommodation</option>
<option value=&quot;pubs&quot;>Pubs</option>
<option value=&quot;restaurants&quot;>Restaurants</option>
<option value=&quot;travel&quot;>Travel</option>
</select>
</form>

<%
dim category
category=request.form(&quot;category&quot;)
response.write category
%>


The asp code is on the same page as the HTML(addDB.asp). Basically what I want to happen is that when the user selects a value from the dropdown list that value is printed on the same page.

Any help would be appreciated, thanks for your time,
 
you need a submit button:

<input type=&quot;submit&quot; name=&quot;Submit&quot; value=&quot;Submit&quot;>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top