Button Submit and its Properties


    
 

Sometimes it necessary to use a few submit buttons in one form. You can define only one <form ……. action=”blabla.php”> to execute only one destination file.

What can you do if in the one form you would like to use a few submit buttons like “SEND”, “EDIT”, “REMOVE” etc?

You can make a few buttons like:

<input type=”submit” name=”send” value=”click to send”>

<input type=”submit” name=”edit” value=”click to edit”>

<input type=”submit” name=”remove” value=”click to remove”>

Inside of blabla.php file you also need to make the following statements:

if ($_POST[‘send’]) {send code}
if ($_POST[‘edit’]) {edit code}
if ($_POST[‘remove’]) {remove code}

Leave a Reply

Your email address will not be published. Required fields are marked *

CAPTCHA
Change the CAPTCHA codeSpeak the CAPTCHA code
 

This site uses Akismet to reduce spam. Learn how your comment data is processed.