Results 1 to 2 of 2

Thread: Submitting two forms using one button

  1. #1
    Join Date
    Oct 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Submitting two forms using one button

    I want a user to enter a mobile number into a field.

    I then want one submit button which does the following:

    Send the mobile number (as part of a Form action to a URL)
    Send the mobile number to an email address using something like MAILFORM and then redirecting the user to a THANK YOU landing page.

  2. #2
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by davindersangha
    Send the mobile number (as part of a Form action to a URL)
    Send the mobile number to an email address using something like MAILFORM and then redirecting the user to a THANK YOU landing page.
    The first is simple:

    HTML Code:
    <form action="/some/resource?any-other=query-string&name=value-pairs" method="get">
      <!-- ... -->
      <label>Mobile number: <input type="text" name="number" value=""></label>
      <!-- ... -->
    </form>
    The second is also simple in isolation, however it's not possible to do both as if they're separate operations. The server-side script that will receive the submission must do both. Though there are other possible alternatives, they aren't worth considering.

    Mike

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
  •