Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: multi page form help


Message #1 by "Christopher Gehrman" <cgehrman@p...> on Thu, 26 Jul 2001 09:20:19
Could you explain how exactly I would do that in this case, where for
instance if sumlover is 1, the form should redirect to page1.asp, otherwise
it should go to page2.asp :

<%@ language="JavaScript"%>
<SCRIPT LANGUAGE = JavaScript>
(then a validation function)

<form name="page1" onsubmit="return p1check()" method="post"
action="check1.asp">
<input type="radio" value="0" name="SUMLOVER" >Yes <br>
              <input type="radio" name="SUMLOVER" value="1">No</td>
<input type="submit"> 


Also, do you have any idea how I can use session values to store things
instead of passing them over all the pages for this form I have?


Thanks, Christopher

> -----Original Message-----
> From:	Johnson, Israel [SMTP:IJohnson@R...]
> Sent:	Thursday, July 26, 2001 4:50 AM
> To:	javascript
> Subject:	[javascript] RE: multi page form help
> 
> Have you tried using query string? If you are using a form to input the
> answers (textboxes, checkboxes, or option buttons), in your form's method
> use get.
> 
> <form action="  [url]  " method="get"  >  Use JavaScript to evaluate the
> answers would change the url. 
> See:  document.forms[0].action = " url"
> 
> 
> ----Original Message-----
> From: Christopher Gehrman [mailto:cgehrman@p...]
> Sent: Thursday, July 26, 2001 5:20 AM
> To: javascript
> Subject: [javascript] multi page form help
> 
> 
> I have a long form that is split into different pages.  This is becuase 
> there are certain skip patterns.  If the last question on a page is 
> naswered yes it goes to page 2, and if answered no, it goes to page 3.
> 
> Basically I want to carry over variables without having to use hidden 
> fields.  I tired using session variables, but they seem to go away.
> 
> I am also using an in between page right now to test if a variable is 
> answered yes or no, so I would have to carry over those variables over 28 
> different pages (16 pages for the questions, and about 12 pages for the 
> test of which page to go to next).
> 
> can anyone help me?
> 



  Return to Index