SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Always learning kigoobe's Avatar
    Join Date
    May 2004
    Location
    Paris
    Posts
    1,565
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Multiple forms, one submit button.

    Well

    I need to submit two forms using a single submit button. What's ur suggestion. I found that JavaScript is the only way to go here, right?

    Thanks.

  2. #2
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,788
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    Since submitting a form is a request to transfer to another page you have two choices on how you want the processing of the two forms to take place.

    1. One form opens a new page in the current window to process it while a new window is opened to load the page to process the second form.

    2. Open the page to process the first form and then have that page open the page to process the second form.

    How the script would work depends on which of these ways you decide to use.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">


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
  •