Results 1 to 7 of 7

Thread: FORM using multiple pages..?

  1. #1
    Join Date
    Oct 2005
    Location
    Liverpool, UK
    Posts
    87
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Question FORM using multiple pages..?

    I have a questionnaire FORM that, due to its size, would be better presented on screen if it could be split into sections - i.e. the user completes section1 then clicks "Next" to clear the space and display the text asssociated with section2 - instead of the user just scrolling down the page until they reach the end of all the sections.

    Can anyone please suggest how I might do this? I just want to keep the page tidy and present each section in a uniform style. I guess I need to keep all the FORM values within the one htm page for it to POST the necessary field values properly?

    Thanks in advance,

    N.

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Depends on how you're handling the form. The best idea would be to use cookies or sessions to preserve the entered data. Failing that, you could use hidden form elements to transfer data from one page to the next. As a last resort (Javascript dependence) you could use something like the Multipart Content script here on DD.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Twey
    The best idea would be to use cookies or sessions to preserve the entered data.
    Sessions, preferably. Like scripting, cookies shouldn't be relied upon. Moreover, from the sound of things, there might be too much data to stuff into cookies.

    Mike

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    You could just have them submit twice, but make matching values, like use IP address and general time frame to match people.
    That way, it woudln't require much extra work, and you'd be able to match the submissions up easily enough.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  5. #5
    Join Date
    Mar 2006
    Posts
    600
    Thanks
    5
    Thanked 4 Times in 4 Posts

    Default

    If you interested you could go this route...
    http://express.perseus.com/perseus/asp/login.aspx

  6. #6
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by djr33
    [...] use IP address and general time frame to match people.
    Hardly bulletproof. The user should be assigned a unique identifier to be returned on every request, either through the URI or cookies, which is precisely what sessions do.

    Mike

  7. #7
    Join Date
    Oct 2005
    Location
    Liverpool, UK
    Posts
    87
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Thanks guys - it's given me a few things to think about...

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
  •