Bonjour à tous,
J'ai une fonction qui fait l'envoi de mail. J'utilise un header pour renvoyer vers une page de remerciement. J'ai vu beaucoup de choses la-dessus sur le net, pourtant je n'arrive pas à résoudre ce problème dans mon code.
Warning: Cannot modify header information - headers already sent by (output started at /mnt/128/free.fr/d/0/proplan/formmail.php:5) in /mnt/128/free.fr/d/0/proplan/formmail.php on line 6
Voici mon code :
<body><?php
Header("Location: http://proplan.free.fr/merci.php");
$TO = "proplan@free.fr";
$h = "From: " . $TO;
$message = "";
while (list($key, $val) = each($HTTP_POST_VARS)) {
$message .= "$key : $val\n";
}
mail($TO, $subject, $message, $h);
?>
</body>
Pourriez-vous m'aider ?
Merci à tous


