0
Guys 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
}
?>
Good need to make php process user information only if the user confirms Alert.
You can do this using jQuery?
You have to do it with ajax, or create a cookie (with true/false value) with javascript and then redirect/Reload the page. You can see the value of the cookie in php:
$_COOKIE['NOME DO COOKIE']
– Miguel
You’d better put this confirm() on the cancellation button onClick.
– Augusto