I have the following structure in php:
<?php
// Verifica se cancela o cadastro
if ((!empty($action)) and ($action == "cancelar")) {
?>
<script>
confirm ('Tem certeza que quer cancelar?>');
</script>
<?php
die;
// Aqui executa as operaçøes no BD
}
?>
Well I need to make php process the user information only if the user confirms the alert.
Can you do this using jQuery?