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

write out a jump menu form option

Status
Not open for further replies.

MikeDee

Programmer
Aug 2, 2001
19
GB
hi everyone,

The following isn't working?
What I'm trying to do is display on screen one of the option in the jump menu.

If I changed the this line
getstuff = request.form("option1") TO
getstuff = request.form("ss")

it'll display the input field's stuff but jump menu no????

-----------------------

<HTML>
<form method=&quot;post&quot; action=&quot;aspform.asp&quot;>
<input type=&quot;text&quot; name=&quot;ss&quot;><BR>
<select name=&quot;select11&quot;>
<option selected>select option</option>
<option value=option1>michael 1</option>
<option value=option2>michael 2</option>
</select>
</form>

<%
dim getstuff
getstuff = request.form(&quot;option1&quot;)
response.write getstuff
%>
</HTML>
 
select11 is the name of your form object, not option1. option1 is what might be displayed when you ask for:

request.form(&quot;select11&quot;)

So if you actually wanted to see &quot;micheal1&quot;, then you would need to declare that as the value for your option, as well as the text (that sits between the two tags).

<option value=micheal1>michael1</option>

:)
penny.gif
penny.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top