Ciao!

Pagina che prende i dati:

Codice PHP:
$var $_POST['var'];

$query "INSERT INTO tabella (var) VALUES ('$var')";
if(!
mysql_query($query) or die (mysql_error())) {
      
header("Location: errore.php");
      exit();
} else {
      
header("Location: ok.php");
      exit();