C
Col
Hi All,
How do I pass the value selected in "SN" select box to the parameters of
"href=EditRec.asp"?
<font face="Arial"> <u><a href="EditPers.asp?USR2=<%= USER
%>&SNAME=SN">Edit Record</a></u> </font></i></b>
<SELECT NAME="SN">
<option selected="selected">Select Surname...</option>
<%
sConnStr="Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\inetpub\wwwroot\WORK\PERSONLL.mdb"
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.mode = 3
Conn.Open sConnStr
strSQL = "SELECT SURNAME FROM [tblNames] ORDER BY UKEY;"
Set Rs = Conn.Execute(strSQL)
Do While Not Rs.EOF
If NOT ((IsNull(Rs("SURNAME")))or(Rs("SURNAME")=""))Then
Response.Write ("<OPTION value='" & Rs("SURNAME") & "'>" &
Rs("SURNAME")) & " </OPTION>"
End If
Rs.MoveNext
Loop
Rs.Close
Set Rs= Nothing
Conn.Close
Set Conn = Nothing
%>
</select>
It has me stumped at the moment.
I did put an onchange script to put the value in a hidded input box but the
called page could never see it (snm=request.form("snamefld")).
The called page can see the USER parameter (usr=request.querystring("USR2"))
Thanks for any help.
Col
How do I pass the value selected in "SN" select box to the parameters of
"href=EditRec.asp"?
<font face="Arial"> <u><a href="EditPers.asp?USR2=<%= USER
%>&SNAME=SN">Edit Record</a></u> </font></i></b>
<SELECT NAME="SN">
<option selected="selected">Select Surname...</option>
<%
sConnStr="Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\inetpub\wwwroot\WORK\PERSONLL.mdb"
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.mode = 3
Conn.Open sConnStr
strSQL = "SELECT SURNAME FROM [tblNames] ORDER BY UKEY;"
Set Rs = Conn.Execute(strSQL)
Do While Not Rs.EOF
If NOT ((IsNull(Rs("SURNAME")))or(Rs("SURNAME")=""))Then
Response.Write ("<OPTION value='" & Rs("SURNAME") & "'>" &
Rs("SURNAME")) & " </OPTION>"
End If
Rs.MoveNext
Loop
Rs.Close
Set Rs= Nothing
Conn.Close
Set Conn = Nothing
%>
</select>
It has me stumped at the moment.
I did put an onchange script to put the value in a hidded input box but the
called page could never see it (snm=request.form("snamefld")).
The called page can see the USER parameter (usr=request.querystring("USR2"))
Thanks for any help.
Col