Hi,
I have two buttons, one is for submitting, one is for doing something else.
So far, the one supposed to do something else, do the submit too, that's the problem.
HTML Code:<input type="submit" name="submit" id="submit" value="Make change" /> <input type="submit" name="cancel" id="cancel" value="Cancel" />Code PHP:If($_POST['submit']) { change the info } If($_POST['cancel'] { go back to previous page }
If you have an answer for me, I'd also appreciate to hear how to handle 3 buttons.






Bookmarks