|
it
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Asp and script
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 amatuer wrote:
Show quote > Iv gt an asp page that has two buttons on it. Not transferred in what sense? Can you see the querystring in the URL?> 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 Did you try request.form() instead of request.querystring()? request.form()
is required with method=post, which looks like what you're using... Show quote "amatuer" <njoo***@gmail.com> wrote in message news:1147091438.839324.199270@y43g2000cwc.googlegroups.com... > no the query string does not display at all. > |
|||||||||||||||||||||||