|
it
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Passing Value Problem
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
Show quote
Gazing into my crystal ball I observed "Doug" <da***@msn.com> writing in <select name="selSA" size="1" style="width: 200px; font-size: 10px;">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 <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
Show quote
> HTML code Like Adrienne pointed out the value in your code are all empty strings.> > <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 put something between the quotes after where it says value= and then, as if by magic, a value will be posted. |
|||||||||||||||||||||||