Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2009
    Posts
    4

    Unanswered: how to handle multiple form in php

    hello
    i have 3 forms in a single page how can i handle 3 diff action using php in same page?

    regards
    Neel

  2. #2
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    Each form could have a different submit action... e.g. a querystring value. You can then use this to identify what action to perform.
    George
    Home | Blog

  3. #3
    Join Date
    Mar 2007
    Location
    636f6d7075746572
    Posts
    770
    Just provide your submit button with a "name" parameter, and then in your PHP look for that parameter to determine which form you have sent. Alternatively just include a hidden field in your form and use that to determine which one you have sent.

    Of course the other method would be to use 3 different PHP scripts to POST your form to, but by the sounds of it you don't want to do this.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •