When I press the submit button it has ok or cancel. When I hit ok it submits the data, when I hit cancel it submits the data. I want it when I hit cancel to not submit the data or reload the page. Here's my code:
<SCRIPT LANGUAGE=JAVASCRIPT>
function verify(){
msg = "Are you sure all the information entered is correct?";
return confirm(msg);
}
</SCRIPT>
<input type="submit" name="Submit" value="Submit Payment" onClick="verify()">
<SCRIPT LANGUAGE=JAVASCRIPT>
function verify(){
msg = "Are you sure all the information entered is correct?";
return confirm(msg);
}
</SCRIPT>
<input type="submit" name="Submit" value="Submit Payment" onClick="verify()">