I want to place in favorites / search alerts two forms with buttons, so that one button sends data to one page and the second button to another page, and that the data is sent by the POST method. Can I do this? Or, in principle, you can use one form, but the main thing is that there are two buttons, and they send them to different pages? I found only this on the Internet:
html5
<form action="page1.php" method="post">
...........
<input type="submit" name="form1">
</form>
...........
<form action="page2.php" method="post">
<input type="submit" name="form2">
</form>
PHP
if (isset($_REQUEST['form1']))
{
..........
}
if (isset($_REQUEST['form2']))
{
.........
}
Here is an example