www.webdeveloper.com
Results 1 to 5 of 5

Thread: Form within a form?

  1. #1
    Join Date
    Jun 2004
    Posts
    1,299

    Form within a form?

    Hi,

    I have the code below (obviously has alot stripped but the problem still persists with that code).
    Code:
    <blockquote>
      <div id="inside">
        <form method="post" action="?sID=1&cPath=">
          <div style="width:100%;">
            <div>
              <h3 class="actions">Actions<input type="image" name="new" src="boo.jpg" height="25px" width="40px" value="New"></h3>
            </div>
          </div>
    			  
          <form method="post" action="?action=T">
            <p>Within this form</p>
            <input type="hidden" value="me" name="m">
            <input type="submit" value="ss" name="sk">
          </form>
        </form>
      </div>
    </blockquote>
    The problem i get is that whatever button i press either new or sk it always relates to the first form.

    What i want is the sk to relate to the form its inside and for new to relate to the first form?

    Any ideas.

    Thanks
    k0r54

  2. #2
    Join Date
    Nov 2003
    Location
    Jerryville, Tejas
    Posts
    11,715
    Sorry but I can't read DTD very well.

    <!ELEMENT FORM - - (%block;|SCRIPT)+ -(FORM) -- interactive form -->

    Does the -(FORM) mean forms can't be nested?

  3. #3
    Join Date
    Jun 2004
    Posts
    1,299
    u lost me :s

  4. #4
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Nesting of form element is not permitted.

  5. #5
    Join Date
    Jul 2003
    Location
    New York City
    Posts
    2,771
    No, you can't nest the form element. I couldn't see how that would ever make any sense. If you need to pass information to two different pages on submit, which it looks like you're trying to do, pass the information to one page, and then have that page pass the information on to the second. This can be solved server side.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles