Passing Value Problem

D

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
 
A

Adrienne

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.
 
H

Hal Rosser

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,159
Messages
2,570,879
Members
47,417
Latest member
DarrenGaun

Latest Threads

Top