Reputation: 488
I have a file HTML with a lot of buttons, when I click a button, the action in the HTML is a reference to a php file. What can I do for don't open a new the page, I mean run the PHP file without opening it.
This is the form in my HTML
<form action="Controlador.php" method="POST">
<p>He querido irme a dormir a las 8:00 en viernes</p>
<input type="submit" class="button" name="1" value="Vota" />
<br>
</form>
Upvotes: 0
Views: 1171
Reputation: 1925
see this How do I make a PHP form that submits to self?
do not define separate action page, use same form page for action
Upvotes: 1