codice:
$azione = trim($_POST['Azione']); 
$ID = trim($_POST['ID']); 
$modalita = trim($_POST['Modalita']); 
$tipo = trim($_POST['Tipo']); 

switch ($modalita) {
case NULL:
header("Location: errore2.php");
breack;
case 0:
header("Location: errore2.php");
breack;
case 2:
header("Location: errore2.php");
breack;
case 1:

switch ($azione) {
case "Modifica":
$query = "UPDATE utenti SET Modalita='$tipo' WHERE ID = '$ID'";
$result = mysql_query($query, $db);
header("Location: modifica2.php");
break;
case "Sblocco":
$query = "UPDATE utenti SET Bloccato=' ' WHERE ID = '$ID'";
$result = mysql_query($query, $db);
header("Location: modifica2.php");
break;
case "Blocco":
$query = "UPDATE utenti SET Bloccato='SI' WHERE ID = '$ID'";
$result = mysql_query($query, $db);
header("Location: modifica2.php");
break;
case "Cancella":
$query = "DELETE utenti WHERE ID = '$ID'";
$result = mysql_query($query, $db);
header("Location: modifica2.php");
break;
}
breack;
}
L'ultima opzione, la cancellazione, non va anche se ne da' conferma, perché?