D
Dthmtlgod
I am having a little difficulty in passing a value from a page to another
page. I am going to provide excerpts from the code. I think I am close.
This is from Page1.ASP
<%
Set Conn = Server.CreateObject("ADODB.Connection")
DSNtest="DRIVER={Microsoft Access Driver (*.mdb)}; "
DSNtest=dsntest & "DBQ=" & Server.MapPath("ncci.mdb")
Conn.Open DSNtest
Set rs = Server.CreateObject("ADODB.Recordset")
strSQL = "SELECT Distinct Insured FROM CCI2"
rs.Open strSQL, conn, 3, 3
%>
<TABLE>
<tr>
<td width=200>
<select
onchange="parent.fSearch1.location.href='Search1.asp?Ins='+this.value;"
size="1">
This passes the INS value to Page 2.ASP after something is selected (code
not shown)
This is from Page 2.ASP
insName = Request.QueryString("Ins")
Function sIn(s)
sIn = "'" & Replace(s, "'", "''") & "'"
End Function
Set Conn = Server.CreateObject("ADODB.Connection")
DSNtest="DRIVER={Microsoft Access Driver (*.mdb)}; "
DSNtest=dsntest & "DBQ=" & Server.MapPath("cci.mdb")
Conn.Open DSNtest
Set rs = Server.CreateObject("ADODB.Recordset")
strSQL = "SELECT Distinct State FROM CCI2 where Insured = " & sIn(insName) &
";"
rs.Open strSQL, conn, 3, 3
This works as it should up to this point.
I am trying to pass insName to Page 3.ASP
I have tried this inside my form.
<%
response.write"<input type=hidden name=insName value='" & insName & "'>"
%>
This is from Page 3.ASP
insName = Request.form("insName")
Then I am just trying to display it using the below code and it doesn't see
it.
response.write(insName)
Please help.
page. I am going to provide excerpts from the code. I think I am close.
This is from Page1.ASP
<%
Set Conn = Server.CreateObject("ADODB.Connection")
DSNtest="DRIVER={Microsoft Access Driver (*.mdb)}; "
DSNtest=dsntest & "DBQ=" & Server.MapPath("ncci.mdb")
Conn.Open DSNtest
Set rs = Server.CreateObject("ADODB.Recordset")
strSQL = "SELECT Distinct Insured FROM CCI2"
rs.Open strSQL, conn, 3, 3
%>
<TABLE>
<tr>
<td width=200>
<select
onchange="parent.fSearch1.location.href='Search1.asp?Ins='+this.value;"
size="1">
This passes the INS value to Page 2.ASP after something is selected (code
not shown)
This is from Page 2.ASP
insName = Request.QueryString("Ins")
Function sIn(s)
sIn = "'" & Replace(s, "'", "''") & "'"
End Function
Set Conn = Server.CreateObject("ADODB.Connection")
DSNtest="DRIVER={Microsoft Access Driver (*.mdb)}; "
DSNtest=dsntest & "DBQ=" & Server.MapPath("cci.mdb")
Conn.Open DSNtest
Set rs = Server.CreateObject("ADODB.Recordset")
strSQL = "SELECT Distinct State FROM CCI2 where Insured = " & sIn(insName) &
";"
rs.Open strSQL, conn, 3, 3
This works as it should up to this point.
I am trying to pass insName to Page 3.ASP
I have tried this inside my form.
<%
response.write"<input type=hidden name=insName value='" & insName & "'>"
%>
This is from Page 3.ASP
insName = Request.form("insName")
Then I am just trying to display it using the below code and it doesn't see
it.
response.write(insName)
Please help.