Salut et merci de m'aider, Je voudrais qu'une fois le formulaire de courriel envoyé cela revienne à la page d'accueuil.
Le serveur me retourne un:
Le courriel a bien été envoyé! / The email has been sent !
Warning: Cannot modify header information - headers already sent by (output started at /home/--- /contactmail.php:9) in /home/---/public_html/webmaster/contactmail.php on line 13
<?php
session_start();
if(!isset($_SESSION['code']) OR strlen($_SESSION['code']) !=5) exit("Erreur! Error!");
if($_SESSION['code'] != $_POST['verif']) exit("Erreur les valeurs sont différentes! / Error values ??are different!");
$exp = $_POST['mail'];
$objet = stripslashes($_POST['objet']);
$msg = stripslashes($_POST['msg']);
$envoi=mail("[email protected]", $objet, $msg,"From: $exp\r\n"."Reply-To: $exp\r\n");
if($envoi) echo"Le courriel a bien été envoyé! / The email has been sent !";
else echo"L'envoi a échoué, merci de renouveller l'opération ! / Sending failed, thank you to renew the operation!";
session_unset();
session_destroy();
header("Location: http://www.---.com");
?>