Asp and script

A

amatuer

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 = ""
'"Activity_Rpt_Inv4.asp?klient=response.write(request.querystring("klient"))&adviseur=response.write(
session("Pers_ID"))&ActId=response.write(request.querystring("ActId"))"

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

</script>

<form action=<%= varform %> method="post" name="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.

please help
 
L

Larry Bud

amatuer said:
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 = ""
'"Activity_Rpt_Inv4.asp?klient=response.write(request.querystring("klient"))&adviseur=response.write(
session("Pers_ID"))&ActId=response.write(request.querystring("ActId"))"

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

</script>

<form action=<%= varform %> method="post" name="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.

please help

Not transferred in what sense? Can you see the querystring in the URL?
 
A

Aaron Bertrand [SQL Server MVP]

Did you try request.form() instead of request.querystring()? request.form()
is required with method=post, which looks like what you're using...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,077
Latest member
SangMoor21

Latest Threads

Top