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="category" >
<option value="accommodation">Accommodation</option>
<option value="pubs">Pubs</option>
<option value="restaurants">Restaurants</option>
<option value="travel">Travel</option>
</select>
</form>
<%
dim category
category=request.form("category"
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,
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="category" >
<option value="accommodation">Accommodation</option>
<option value="pubs">Pubs</option>
<option value="restaurants">Restaurants</option>
<option value="travel">Travel</option>
</select>
</form>
<%
dim category
category=request.form("category"
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,