Home All Groups Group Topic Archive Search About


Author
24 Feb 2005 7:56 PM
Doug
This should work, but I can't see the value when it hits the ASP code.  I am
trying to get the hang of this before moving forward with my project

HTML code

<form action="updTicket.asp" method="post">
<select name="selSA" size="1" style="width: 200px; font-size: 10px;">
<option value="">Team 1</option>
<option value="">Team 2</option>
<option value="">Team 3</option>
<input type=submit value="Update">
<input type=reset value="Reset">
</form>

ASP code

updSA = request.form("selSA")
response.write updSA
response.end

Author
24 Feb 2005 9:10 PM
Adrienne
Show quote
Gazing into my crystal ball I observed "Doug" <da***@msn.com> writing in
news:OJw94rqGFHA.1096@tk2msftngp13.phx.gbl:

> This should work, but I can't see the value when it hits the ASP code.
> I am trying to get the hang of this before moving forward with my
> project
>
> HTML code
>
><form action="updTicket.asp" method="post">
> <select name="selSA" size="1" style="width: 200px; font-size: 10px;">
> <option value="">Team 1</option>
> <option value="">Team 2</option>
> <option value="">Team 3</option>
><input type=submit value="Update">
><input type=reset value="Reset"> </form>
>
> ASP code
>
> updSA = request.form("selSA")
> response.write updSA
> response.end



<select name="selSA" size="1" style="width: 200px; font-size: 10px;">
<option value="" selected="selected">Choose a team</option>
<option value="1" >Team 1</option>
<option value="2">Team 2</option>
<option value="3">Team 3</option>
</select>

<% updSA = request.form("selSA")%>

You have to give a VALUE to get a value. 

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Author
24 Feb 2005 10:52 PM
Hal Rosser
Show quote
> HTML code
>
> <form action="updTicket.asp" method="post">
>  <select name="selSA" size="1" style="width: 200px; font-size: 10px;">
>  <option value="">Team 1</option>
>  <option value="">Team 2</option>
>  <option value="">Team 3</option>
> <input type=submit value="Update">
> <input type=reset value="Reset">
> </form>
>
> ASP code
>
> updSA = request.form("selSA")
> response.write updSA
> response.end

Like Adrienne pointed out the value in your code are all empty strings.
put something between the quotes after where it says  value=
and then, as if by magic, a value will be posted.

AddThis Social Bookmark Button