Join our new community forum for support & discussion

Join Now

Home Support Extensions Search Alerts favorites + search alerts, by the POST method

favorites + search alerts, by the POST method

  • Author
    Posts
  • capitalss2

    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

    capitalss2

    Live example in codepen.io

    capitalss2

    @gabetu Are you not familiar with this?

Viewing 3 posts - 1 through 3 (of 3 total)

New Reply

This forum has been archived and is no longer accepting new posts or replies. Please join our new community forum for support & discussion.