mcallaghan
IS-IT--Management
I have a drop down list which is populated from a mysql database. I should also point out that the drop down value has a value put in there but I want to give the user the opportunity to change it.
For some reason I cant get the value when I click on the button. Below is the code that i am using.
sql= "SELECT user FROM login "
Set rs = conn.execute(sql)
'*****bckuser2 is set to jsmith*******'
response.write "<select name=""Bckuser1"">"
response.write "<option value=" & Bckuser2 & ">" & Bckuser2 & "</option>"
do while not rs.eof
Response.Write "<option value=''" & rs("user") &"''>"& rs("user") &"</option>"
rs.movenext
loop
response.write ("</select>")
%>
<tr>
<!--td><input type="submit" value="Complete Registration"></td-->
<td><INPUT type="submit" name="asubmit" value="Change Registration"></td>
If Request.Form("asubmit") = "Change Registration" then
Response.write "here" &Request.Form("bckUser1")
I cant get the bckuser value.
For some reason I cant get the value when I click on the button. Below is the code that i am using.
sql= "SELECT user FROM login "
Set rs = conn.execute(sql)
'*****bckuser2 is set to jsmith*******'
response.write "<select name=""Bckuser1"">"
response.write "<option value=" & Bckuser2 & ">" & Bckuser2 & "</option>"
do while not rs.eof
Response.Write "<option value=''" & rs("user") &"''>"& rs("user") &"</option>"
rs.movenext
loop
response.write ("</select>")
%>
<tr>
<!--td><input type="submit" value="Complete Registration"></td-->
<td><INPUT type="submit" name="asubmit" value="Change Registration"></td>
If Request.Form("asubmit") = "Change Registration" then
Response.write "here" &Request.Form("bckUser1")
I cant get the bckuser value.