Multiple Graphical Submit Buttons
Posted: Sat Sep 10, 2005 7:19 pm
I have a form which has 2 graphical submit buttons.
One will update the record and the other cancel the operation and redirect to another page.
I don't know how to verify which one was clicked.
Here is my PHP if statement:
Here is my html code:
The error I get is:
"Notice: Undefined index: submit in..."
One will update the record and the other cancel the operation and redirect to another page.
I don't know how to verify which one was clicked.
Here is my PHP if statement:
Code: Select all
if($_POST['submit']){...Code: Select all
<input type="image" name="cancel" src="images/btncancel.jpg" border="0">
<input type="image" name="submit" src="images/btnupdate.jpg" border="0">"Notice: Undefined index: submit in..."