That is how to do it right? I have a lot of input on the page and 3 button. How to combine them into 1 form?

  • if there are no other forms inside the page, then you can put at least everything inside the body . and then all the "scattered" elements will be submitted together - lexxl
  • and if you make a lot of forms and give them the same name, will it work? - mars

1 answer 1

For the input tag, you can set the form attribute with the identifier of the desired form.

 <input type="<тип>" form="<идентификатор>"> <form id="<идентификатор>">...</form> 

A source