Iv gt an asp page that has two buttons on it.
one button uses a form and the other uses scrpit to go to the next
page.
I need both buttons to submit data.
Iv usesd this on page1:

public varform
varform =3D ""
'"Activity_Rpt_Inv4.asp?klient=3Dresponse.write(request.querystring("klient=
")=AD)&adviseur=3Dresponse.write(

session("Pers_ID"))&ActId=3Dresponse.write(request.querystring("ActId"))"



<script type=3D"text/vbscript" language=3D"VBScript" event=3D"onClick"
for=3D"btnPrint">
InvDisp.action =3D
"Activity_Rpt_Inv5.asp?klient=3D<%=3D
request.querystring("klient") %>&adviseur=3D<%=3D session("Pers_ID")
%>&ActId=3D<%=3D request.querystring("ActId") %>"
InvDisp.submit


</script>


<form action=3D<%=3D varform %> method=3D"post" name=3D"InvDisp">


But they nt working. The code used to go to a page using the scrpit
works in the sense that it goes to the pasge,bt the data is nt
transferred.=20


please help

Re: Asp and script by Evertjan

Evertjan
Mon May 08 05:45:09 CDT 2006

amatuer wrote on 08 mei 2006 in microsoft.public.scripting.vbscript:

> Iv gt an asp page that has two buttons on it.
>

1 please do not multipost on usenet

2 please do not use usenet as sms

> Activity_Rpt_Inv4.asp?klient=response.write(request.querystring
("klient")­)& ...

response.write() does not return a value in [classic] ASP.

a = response.write("Hello world")

will error in ASP-vbscript.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)