I have a HTML form:
<form method="post" action="addticketupdate.php">
....
</form>
Then above the form I have:
<?php
if(isset($_POST["submit"])) {
... do stuff here
}
?>
So the submit button in my form has an id and name of "submit"
I want to make a JavaScript confirm box popup when the submit button is clicked, the statement says: If user clicks "OK" the php code excuted, else do nothing.
How can I do that?