Re: Multiple buttons single form
Posted: Sat Oct 11, 2008 2:19 am
Yep, there ispickle wrote:Why are you testing for $_POST['Action']? There's no variable named 'Action' in your form, and 'Action' isn't being POSTed.
Code: Select all
<input type="Submit" name="Action" value="Update" /> <input type="Submit" name="Action" value="Delete" onclick="if (! confirm('Are you sure?')) { return false; }" />Thanks for all the input, it is appreciated.