Answer the question
In order to leave comments, you need to log in
How can several forms be combined into one?
There are several forms:
<form method="post" action="index.php">
...
</form>
<form method="post" name="vza" action="index.php">
...
</form>
<form method="get" action="index.php">
...
</form>
<form method="post" action="index.php" name="refresh">
...
</form>
<form method="post" name="rla" action="index.php#diff_adress">
...
</form>
Answer the question
In order to leave comments, you need to log in
If you need to use one action to process all forms, make the field hidden, which will contain the name of the form (for example, register, login, recover). On the server, you read this field and process the form in the right way (you can use switch-case).
Or specify the problem :)
Probably not without details. What is your goal? You have different methods for submitting data from the form, although the processing script 1.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question