How can I post a form variables when a user selects something from a select option box.
Printable View
How can I post a form variables when a user selects something from a select option box.
Like this:
<%@ Language=VBScript %>
<HTML>
<BODY>
<%
Response.Write "Previous selected: " & Request.Form("mySelect") & "<br><br>"
%>
<FORM action="mypage.asp" method="post">
<select name="mySelect">
<option value="1">one</option>
<option value="2">two</option>
</select>
<input type=submit>
</FORM>
</BODY>
</HTML>