Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder StealthRT's Avatar
    Join Date
    Aug 2006
    Posts
    185
    Thanks
    14
    Thanked 0 Times in 0 Posts

    2 Forms overlaping each other...

    Is there anyway to have 2 forms overlap each other on a page but submit to different pages for each?

    Example:
    Code:
    <form name="1" URL="me1.asp">
    input type=""submit"" name=""Submit"" value=""send form 1"">
         <form name="2" URL="me2.asp">
               input type=""submit"" name=""Submit"" value=""send form 2"">
         </form>
    </form>
    Right now, if i do that type of code it will only submit the form1 URL even if i click inside the Form2.

    Any help would be great
    David

  • #2
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,589
    Thanks
    0
    Thanked 644 Times in 634 Posts
    It is invalid to place a form inside another form. You can have multiple submit buttons in a form pass different values to the action script and have that script perform different actions based on the value of the submit button passed.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #3
    Regular Coder StealthRT's Avatar
    Join Date
    Aug 2006
    Posts
    185
    Thanks
    14
    Thanked 0 Times in 0 Posts
    felgall: Mind giving me an example of what your talking about?

    David


  •  

    Posting Permissions

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