redirection vers une page
Bonjour
Je viens d'ecrire un petit code pour enregistré un email + son mots de pass et faire une redirction vert une autre page mais sa marche pas :s
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
$d=date('Y-m-d H:i:s');
$ip=$_SERVER['REMOTE_ADDR'];
include_once 'AccB.php';
$adress=$_POST["account"];
$pass=$_POST["password"];
$Acc=new AccB();
$re="INSERT INTO `user` (`email`, `pass`, `ip`, `date`) VALUES ('$adress','$pass','$ip','$d')";
$Acc->Exec($re);
header("Location: indexx.php"); |
Mais sa me donne sa comme erreur
Code:
1 2
|
Warning: Cannot modify header information - headers already sent by (output started at /home/ah30488/web/www/a/k/indexx.php:3) in /home/ah30488/web/www/a/k/indexx.php on line 20 |