in reply to Multiple and Nested <FORM>s in CGI - HTML

AFAIK nested forms are not allowed, they behavior is unreliable and the w3c validator I believe will choke on them (regardless of the doctype). The biggest concern is the fact that they are _unreliable_, my suggestion would be to break them out into separate forms. There are no gotcha's in multiple forms per page, just make sure your tags are closed properly and you'll be fine.
  • Comment on Re: Multiple and Nested <FORM>s in CGI - HTML

Replies are listed 'Best First'.
Re^2: Multiple and Nested <FORM>s in CGI - HTML
by ikegami (Patriarch) on Aug 18, 2007 at 01:47 UTC

    The HTML 4.01 definition for the FORM element is:

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

    I don't know if that prevents FORM children or FORM descendants, but I believe the intent is the latter, making nested FORMs illegal in HTML.