<form action="insert.php" method="post">
I have a submit button on the page.
<input name="Submit" onclick="confirmation()" type="Submit" />
I have a confirmation function.
Now I'm wondering why when I click submit, and it asks for confirmation, and I click cancel, it still submits the form. Shouldn't it just let me fill in more data? Or correct what was incorrect. The whole point of confirmation seems to suggest that if the data is incorrect, that we have the opportunity to modify it before submission. Unfortunately, it seems to me like that isn't happening in this instance.
Any help would be appreciated.