I have PHP scrip that goes like this:
if ($cost_frm < $cost){
echo "<script type='text/javascript'>
var r = confirm('Input cost is lower than original. Sure?'));
If (r==true){
} else{
*** BREAK PHP SCRIPT ***
}
</script>";
}
And I'd like to stop ejecuting the script (or doing anything else) if the user clicks Cancel. Any tip?