SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Nov 2005
    Posts
    45
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Form over several pages

    I need to create a form over several pages ie - instead of having a very long form on one page I need to split it up over several pages with next buttons at the end of each page (obviously the submit button will appear on the last one). One way I think I could do it is to keep it all on one page but have huge gaps in between and link the next button to an anchor for the next section, but I'm sure there is a better way than this.

    Can anyone give me any advice on how to do this?

    Also, I've always used perl scripts to run forms but I'm just starting to learn PHP and I've heard a lot of people talking about using PHP forms these days. Is PHP a better option?

    Any links on where to start with PHP forms would be very helpful - please bear in mind that I am a beginner!!

    Thanks

  2. #2
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,807
    Mentioned
    158 Post(s)
    Tagged
    3 Thread(s)
    Hi, PHP would certainly be an easy way to go. Using a SESSION variable the date is stored as you go from page to page and you can collate and submit it all on the last page.

    Your other alternative is to use Javascript DOM method where by all the form is on one page still but in hidden DIVS, when the person completes a section of the form they click the 'next' button which hides the DIV they were on and shows the next one. All the form remains on one page and the submit is as normal.

    HTH

    Spike
    Mike Swiffin - Community Team Advisor
    Only a woman can read between the lines of a one word answer.....

  3. #3
    SitePoint Enthusiast
    Join Date
    Nov 2005
    Posts
    45
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up

    Quote Originally Posted by spikeZ View Post
    Hi, PHP would certainly be an easy way to go. Using a SESSION variable the date is stored as you go from page to page and you can collate and submit it all on the last page.
    Thanks Spike,

    That has helped enormously - I at least know what I'm looking for now!

  4. #4
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,807
    Mentioned
    158 Post(s)
    Tagged
    3 Thread(s)
    Glad to have helped
    Mike Swiffin - Community Team Advisor
    Only a woman can read between the lines of a one word answer.....


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •