Move a Form action="ThatPage.php" to an <input type="??" > inline

Joined
Aug 16, 2022
Messages
52
Reaction score
2
Hi Everybody,

How can I place a <form action=""> inline to an <input type=""> statement?


HTML:
<form method="post" action= [Nope, not here]>

    <input type="???" id="button1" value="This One">        [put "ThisOne.php here"]
    <input type="???" id="button2" value="NOT This One">    [put "NotThisOne.php here"]   

    <input type="submit" value="Send">           
          
</form>
 
Joined
Jul 4, 2023
Messages
366
Reaction score
41
HTML formaction Attribute
HTML:
<form action="default.php" method="post" id="myForm">

    <input type="submit" form="myForm" value="This One" formaction="ThisOne.php">
    <input type="submit" form="myForm" value="NOT This One" formaction="NotThisOne.php">   

    <input type="submit" value="Send"><!-- for action: default.php -->           

</form>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top