SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Apr 2012
    Posts
    96
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Sending form data from one form to another

    Exactly as the subject says, something like twitter does for their signup, if you input some data on that initial signup form and click signup, that data will carry over to the other form, I'd like to know how to do that.

  2. #2
    SitePoint Wizard frank1's Avatar
    Join Date
    Oct 2005
    Posts
    1,392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well it can be done in many ways...
    way 1:simplest
    form1 ---post to form 2 (have values of form 1 as hidden or show it)--->then finally insert all into database once...

    2:use some javascript to divide form into parts...it seems as form is separate forms but in fact it is one form divided into many sections and javascript shows things in turn or tab

    3:use session variables(not recommended)

    4:form 1---insert to table--->form 2---update the table-->form 3---update
    ....
    can be other ways too...

    just to get things started.

  3. #3
    SitePoint Enthusiast
    Join Date
    Apr 2012
    Posts
    96
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you! I didn't know any way to do it. (beginner programmer here)

  4. #4
    SitePoint Wizard frank1's Avatar
    Join Date
    Oct 2005
    Posts
    1,392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Hikaru Kagi View Post
    Thank you! I didn't know any way to do it. (beginner programmer here)
    Ok go through these
    http://www.whatstyle.net/articles/49...ne_form_button
    or
    http://www.html-form-guide.com/web-f...e-scripts.html
    or
    http://www.html-form-guide.com/php-f...rder-form.html

    Sorry for directing to tutorial pages.

    But even if i write it may be almost same or it may not be that comprehensive...
    so one rule of the programming ,dont reinvent the wheel...


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
  •