This is a discussion on "form not updating values" within the Classic ASP section. This forum, and the thread "form not updating values are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
form not updating values
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
form not updating values
I have a form with a combo box that when you click it, it should sumit the value selected..
here is the form code with asp code: <form action="placeorder.asp" method="post" enctype="multipart/form-data" name="frmTypeCheck" id="frmTypeCheck"> Type of Check: <label> <select name="typeCheck" id="typeCheck" onChange="frmTypeCheck.submit();"> <% if Session("CheckType")="" then Response.write("<option selected value=" & Chr(34) & Chr(34) & ">-- Select a Type --" & vbCrLf) else Response.write("<option value=" & Chr(34) & Chr(34) & ">-- Select a Type --" & vbCrLf) end if While Not rsTypes.EOF if Session("CheckType")=rsTypes("type") then Response.write("<option selected value=" & chr(34) & rsTypes("type") & Chr(34) & ">" & rsTypes("type") & vbCrLf) else Response.write("<option value=" & chr(34) & rsTypes("type") & Chr(34) & ">" & rsTypes("type") & vbCrLf) end if if rsTypes.eof=false then rsTypes.movenext Wend %> </select> </label> </form> when it loads in, it doesn't keep the value from the typeCheck combo box. here is the code I use to check the form value: <% if Request.form("typeCheck")="" then Session("CheckType")="" else Session("CheckType")=Request.form("typeCheck") end if %> anyone know why it isn't getting the value? |
|
|
![]() |
| Tags |
| form, updating, values |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Taking values from a form without sending it... | Mazinger | JavaScript Forum | 4 | Jan 8th, 2008 18:39 |
| redirecting form based on radio button values | c_martini | JavaScript Forum | 7 | Oct 9th, 2007 10:26 |
| Setting Form Values to Previously Entered Values | masonbarge | PHP Forum | 6 | Oct 17th, 2006 17:36 |
| Multiple Choice Form Values | Andy K | PHP Forum | 9 | Aug 30th, 2005 12:01 |
| Passing values from Datagrid to another form | caryma | ASP.NET Forum | 4 | Aug 17th, 2005 08:06 |