72 users online (1 members and 71 guests)  


  Results 1 to 2 of 2

Related

  1. Forms    Forum: HTML Forum
    Replies: 6
  2. Forms    Forum: HTML Forum
    Replies: 3
  3. Forms    Forum: HTML Forum
    Replies: 6
  4. forms    Forum: HTML Forum
    Replies: 5
  1. #1
    CGI_Newbie's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2007
    Posts
    4

    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!

  2. #2
    CGI_Newbie's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2007
    Posts
    4

    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.



Tags for this Thread