While creating the submit button make sure that you give each button a unique name like the following
Code:
<input type="submit" name="save" value="Save">
<input type="submit" value="Del" name="del">
In your PHP page you can just have code like the following
Code:
$save = $_POST['save'];
$del = $_POST['del'];
If you put the above code in your PHP code you can find out which button has been pressed by the user.
If the user clicked save button then you'll get the value you've mentioned in the value attribute of save <input> tag in this case it is Save.
If the user clicked del button then you'll get the value you've mentioned in the value attribute of del <input> tag in this case it is Del.
I think the technique is clear now so based on the value stored in the $save and $del you can identify the button press.
Bookmarks