Thread: Mulitiple page forms
Results 1 to 2 of 2
10-05-2007, 01:14 AM #1
Mulitiple page forms
I am writing a survey for work and would like it to be on several different HTML pages. When the submit button is clicked on the first page, the information is saved onto a file and the next HTML page is loaded and so on. My question is, what code do i need to write into the cgi file to send the user on to the next HTML page?
Thanks for any help!
10-05-2007, 10:24 PM #2
Re: Mulitiple page forms
Since no one answered my question, I will answer it to maybe help the people who viewed my post.
What I ended up doing was creating separate html pages for every form/page that I wanted. I then created separate cgi pages for each form, with the following code BEFORE the function calls:
print "location: survey2.html\n\n";
don't forget to include the \n\n at the end because it won't work. make sure to also put:
use CGI ":all";
at the top of your cgi script so you can use the param () method from CGI.pm.