Read more!
<form action="fake_action" method="POST"> <button name="disable" value="Deactivate Account" type="submit" onclick="click();">Deactivate Account</button> </form>
NAME VALUE disable Deactivate Account
<html> <head> <title>A simple form</title> <script type='text/javascript'> function test(){ document.forms[0].submit(); } </script> </head> <body> <form action="formsubmit.php" method="POST"> <input name="disable1" value="Deactivate Account(submit button with onclick)" type="submit" onclick="test()"> <input name="disable2" value="Deactivate Account(submit button w/o onclick)" type="submit"> <button name="enable1" value="Activate Account(submit push button with onclick)" type="submit" onclick="test();">Activate Account(submit push button with onclick)</button> <button name="enable" value="Activate Account(submit push button w/o onclick)" type="submit">Activate Account(submit push button w/o onclick)</button> </form> </body> </html>
<html> <head> <title>Submit Form</title> </head> <body> <?php foreach ($_POST as $item) { print $item; } ?> </body> </html>