Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 6 of 6

Thread: Form question

  1. #1
    Junior Member robbieM's Avatar
    Join Date
    Mar 2004
    Location
    Canada
    Posts
    23
    Member #
    5417
    I am redesigning a website. There is a lengthy registration form that I want to break up into 2 or maybe even 3 separate pages for usability purposes.

    How do I code the "continue" button or link at the bottom of each page to save the info so when submiitted on the final page, it is sent in one piece to the designated database or email recipient?

    I have a handle on coding single page forms but not multi-page forms

    Thanks

  2.  

  3. #2
    Senior Member karinne's Avatar
    Join Date
    Dec 2003
    Location
    Aylmer QC Canada
    Posts
    1,607
    Member #
    4335
    Liked
    8 times
    I've never dealth with a multi-page form either but ... I believe the answer would be using cookies here.
    [a web design portfolio - Currently NOT AVAILABLE for work | web design | Re-coding | PSD-to-HTML]
    I'm also on: virb - facebook - twitter - flickr - del.icio.us

  4. #3
    Senior Member hagen's Avatar
    Join Date
    Aug 2005
    Posts
    408
    Member #
    10882
    Liked
    1 times
    i have no idea how you would do it without a scripting language...

    but with one is easy!

    i have done this kind of thing using php to set the initial value of the field... so you can go back and not lose the information...

    the information on each page can be written into a file or database as you go...

    Hagen Rose: hagen(at)jxwd(dot)co(dot)uk
    JX Web Development, Bournemouth, Dorset...JXWD.co.uk

  5. #4
    Junior Member robbieM's Avatar
    Join Date
    Mar 2004
    Location
    Canada
    Posts
    23
    Member #
    5417
    Thanks Hagen

    Actually the form has been edited by the client so it now will fit comfortably on one page. But I did learn about some solutions (session variables etc) so if the need arises in the future I can work from there.

  6. #5
    Senior Member
    Join Date
    May 2003
    Location
    UK
    Posts
    2,354
    Member #
    1326
    Also, if lets say your pages are over 2 pages..

    page1 sends some data using the get method,
    page2 accesses these values and they are the value of some form elements,
    page2 sends the data it received plus more to the final processing script, and voila!

    Or, you could just use the post method for both, but because they have multiple pages to fill in, you may want to make the first few bookmarkable, depending on the data you are carrying from page to page.

  7. #6
    WDF Staff Wired's Avatar
    Join Date
    Apr 2003
    Posts
    7,656
    Member #
    1234
    Liked
    137 times
    Yeah, session variables would be the way to go.

    Example:

    Page 1: Enter in info
    Page 2: Confirmation page (option to go back to page 1, with it already filled in)
    Page 3: Manipulate data (e.g. database entry / search, email, whatever)
    The Rules
    Was another WDF member's post helpful? Click the like button below the post.

    Admin at houseofhelp.com


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 08:19 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com