SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict
    Join Date
    Sep 2006
    Posts
    238
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    registration page with multiple pages

    Hello

    I am working on a registration page that contains multiple pages.

    Each page is divided into three stages.

    (First stage) -> (second stage) -> (third stage)

    The third stage is where all the information is inserted into the mysql database.
    How do I retrieve all the information inserted into stage 1 and 2, and bring it into stage 3?

    Regards

  2. #2
    SitePoint Wizard bronze trophy chris.upjohn's Avatar
    Join Date
    Apr 2010
    Location
    Melbourne, AU
    Posts
    2,189
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    You can store the information in hidden input fields as an array, just make sure you encrypt any vital information like passwords before its outputted to eliminate security holes. Eg:

    HTML Code:
    <input type="hidden" name="reg_store[]" value="<?php echo $_POST['username']; ?>" />
    <input type="hidden" name="reg_store[]" value="<?php echo sha1($_POST['password']); ?>" />

  3. #3
    SitePoint Addict
    Join Date
    Sep 2006
    Posts
    238
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi thank you for your response. The only problem with this is (sorry forgot to mention this)

    I have multiple buttons for the form, so this method won't carry the data over because I am not using action .
    I basically have an if statement that takes the button to a certain page depending on which button is pressed.

  4. #4
    SitePoint Wizard silver trophybronze trophy Cups's Avatar
    Join Date
    Oct 2006
    Location
    France, deep rural.
    Posts
    6,869
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    I would have thought storing data in a session would be ideal for this scenario.


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
  •