is it possible to have multiple forms in the same html document? -



is it possible to have multiple forms in the same html document? -

is possible utilize multiple form in same html document different method(without getting problem), illustration document devided 3 parts form every single part ?

<form id="form1" method="post">..other elements goes here..</form> <form id="form2" method="get">..other elements goes here..</form> <form id="form3" method="post">..other elements goes here..</form>

a page can contain infinity of forms. case, see 2 main solutions.

1. using different action addresses indicate action attribute in form tag different url.

<form id="form1" method="post" action="/login">..other elements goes here..</form> <form id="form1" method="post" action="/signup">..other elements goes here..</form>

2. using hidden field flag add together hidden value action can check branch programme flow.

<form id="form1" method="post"> <input type="hidden" name="service" value="login" /> ..other elements goes here.. </form> <form id="form1" method="post"> <input type="hidden" name="service" value="signup" /> ..other elements goes here.. </form>

html forms

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -