G
G
Ghena_292018-03-25 17:20:11
PHP
Ghena_29, 2018-03-25 17:20:11

What form was the application submitted from?

Good afternoon.
There are approximately 2-3 application forms on the site, for all forms there is one php handler, but the name of the forms is different, how to make the name of the forms come to the soap, in order to know from which form the application was sent?
maybe js or php...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
U
ukoHka, 2018-03-25
@ukoHka

<input type="hidden" name="formName" value="Form1">

B
Barmunk, 2018-03-25
@Barmunk

also possible like this:

<form action="handler.php?form=1" method="post"></form>
<form action="handler.php?form=2" method="post"></form>
<form action="handler.php?form=3" method="post"></form>

<?= $_GET['form']; ?>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question