Hi,
I want to know if there is any limitations on the number of form elements in a html page.
<form method="post" action="1.php">
<form>
<input type="submit" action="2.php">
</form>
</form>
Is this valid?
Hi,
I want to know if there is any limitations on the number of form elements in a html page.
<form method="post" action="1.php">
<form>
<input type="submit" action="2.php">
</form>
</form>
Is this valid?
You shouldn't nest form elements, you can have multiple forms defined on a page however non-nested.
Be careful if you're using ASP.NET with WebForms, as they only allow the definition of a single form element.
The number? No.
However, your example nests them, which is forbidden.
There is no limit to the number of form controls that can be included in a single page or <form>
.
On the other hand, according to the HTML 4.01 Specification, nesting<form>
elements is not allowed.
Nested forms are
try to handle business logic on the server side. there you know which button was clicked and decide what to do.