Punisher7 Posted October 12, 2006 Share Posted October 12, 2006 I have a form with various fields and buttons that delete, insert and edit a table. Depending on which button is pressed, it executes one of the queries. How do I evaluate which button was pressed in php. For example: how do I write in php if delete button was pressed execute this code. Thanks for the help Link to comment Share on other sites More sharing options...
aspnetguy Posted October 12, 2006 Share Posted October 12, 2006 use something like this if(isset($_POST['submit1'])){ doSomething();}if(isset($_POST['submit2'])){ doSomethngElse();} Link to comment Share on other sites More sharing options...
Punisher7 Posted October 13, 2006 Author Share Posted October 13, 2006 Thanks for the Help. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now