Results 1 to 2 of 2

Thread: form with 2 submit buttons

  1. #1
    Join Date
    Nov 2007
    Posts
    149
    Thanks
    67
    Thanked 0 Times in 0 Posts

    Default form with 2 submit buttons

    Hi

    I've wondered what should I do if I have 2 submit buttons for 2 different actions, that the visitor can have in a web form.

    * those actions are referring 2 different PHP pages.

    Thanks

  2. #2
    Join Date
    Oct 2008
    Posts
    42
    Thanks
    0
    Thanked 9 Times in 9 Posts

    Default

    Have the page that the form submits to, check which submit button was pressed and either (1) execute the appropriate code; or (2) redirect to the appropriate page.

    The form may submit back to itself to save creating an intermediate page.

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
  •