Hi,
This is 'test.htm'
---------------
<form name=totd>
<input name="ud" type="hidden" value="" >
</form>
sub dag_onchange()
'dag is a Select
dat=dag.value
if dat<>"99" then
'pass that value to ASP file via a form
document.getEle mentById("ud"). value=dat
ins.action="tes t2.asp"
ins.method="pos t"
ins.submit
'i need the value totd generated by 'test2.asp' and then come back and
continue here ...
if totd=0 then.
......
end if
.........
end sub
table 'test2.asp'
--------------
<%
dat=request.for m("ud")
set objdc = Server.CreateOb ject("ADODB.Con nection")
objdc.Open("pro vider=Microsoft .Jet.OLEDB.4.0; Data Source
=c:\access\test .mdb")
sql = "select lcount(uur) as totdag from studres
set rs=Server.Creat eObject("ADODB. recordset")
rs.open sql, objdc, 3, 3
rec=rs.recordco unt
if rec > 0 then
totd=rs.Fields( "totdag").V alue
end if
%>
Now i would like to go back to 'test.asp' with the value of totd, and even
in the sub dag_change() procedure
..
Thanks for help
André
This is 'test.htm'
---------------
<form name=totd>
<input name="ud" type="hidden" value="" >
</form>
sub dag_onchange()
'dag is a Select
dat=dag.value
if dat<>"99" then
'pass that value to ASP file via a form
document.getEle mentById("ud"). value=dat
ins.action="tes t2.asp"
ins.method="pos t"
ins.submit
'i need the value totd generated by 'test2.asp' and then come back and
continue here ...
if totd=0 then.
......
end if
.........
end sub
table 'test2.asp'
--------------
<%
dat=request.for m("ud")
set objdc = Server.CreateOb ject("ADODB.Con nection")
objdc.Open("pro vider=Microsoft .Jet.OLEDB.4.0; Data Source
=c:\access\test .mdb")
sql = "select lcount(uur) as totdag from studres
set rs=Server.Creat eObject("ADODB. recordset")
rs.open sql, objdc, 3, 3
rec=rs.recordco unt
if rec > 0 then
totd=rs.Fields( "totdag").V alue
end if
%>
Now i would like to go back to 'test.asp' with the value of totd, and even
in the sub dag_change() procedure
..
Thanks for help
André
Comment