SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Wizard WorldNews's Avatar
    Join Date
    Nov 2007
    Posts
    1,027
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    What is the best way to collect information from multiple form (web) pages?

    Hello all,

    What is the best way to collect information from multiple form (web) pages?
    To be more descriptive:
    1- I need to collect information from page1.php
    2- Process this on server side, based on info on this page, then collect info
    either from pagex2.php or pagey2.php
    3- And then depending on whether info on these pages was the right one
    then add the data from page1.php with new data provided in pagex2.php
    or pagey2.php and either insert the whole thing into MySQL or not.

    SO basically what is the best/smartest way with PHP to collect data from
    forms on multiple web pages and then at the very last web (PHP) page decide
    to insert these into MySQL or do something else?

    Best Regards.

    Anoox search engine volunteer

    www.anoox.com

  2. #2
    SitePoint Evangelist
    Join Date
    Oct 2005
    Location
    Michigan, USA
    Posts
    434
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I'd use sessions to store the input through till the end.

  3. #3
    SitePoint Wizard Hammer65's Avatar
    Join Date
    Nov 2004
    Location
    Lincoln Nebraska
    Posts
    1,160
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PHP Code:
    $_SESSION['form'][$step] = $_POST
    The $step variable would be the step in the multipage form being submitted.


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
  •