Notice: Undefined variable
Bonjour
j'ai crée un formulaire qui focntionne parfaitemnt chez 1&1, mais dès que je le démenage ailleurs, alors il s'affciche pleisn de *Notice " :
Citation:
Notice: Undefined variable: constat in /usr/home/v1013/html/envoi.php on line 5
Notice: Undefined variable: msg in /usr/home/v1013/html/envoi.php on line 5
Notice: Undefined variable: recouvrement in /usr/home/v1013/html/envoi.php on line 6
Notice: Undefined variable: conseil in /usr/home/v1013/html/envoi.php on line 7
Notice: Undefined variable: procedure in /usr/home/v1013/html/envoi.php on line 8
voici le code :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| <?php
//Pour définir chaque input du formulaire, ajouter le signe de dollar devant
$msg .= "Constat :\t$constat\n";
$msg .= "Recouvrement :\t$recouvrement\n";
$msg .= "Conseil :\t$conseil\n";
$msg .= "Procédure :\t$procedure\n";
$msg .= "Autre :\t$autre\n";
$msg .= "Message :\t$message\n";
$msg .= "Genre :\t$genre\n";
$msg .= "Nom :\t$nom\n";
$msg .= "Prénom :\t$prenom\n";
$msg .= "Contact :\t$contact\n";
$msg .= "Téléphone :\t$tel\n";
$msg .= "Fax :\t$fax\n";
$msg .= "Adresse :\t$adresse\n";
$msg .= "Ville :\t$ville\n";
$msg .= "Code Postal :\t$cdpostal\n";
$recipient = "toto@free.fr";
$subject = "Formulaire";
$mailheaders = "From: Demande d'informations <> \n";
$mailheaders .= "Reply-To: $email\n\n";
mail($recipient, $subject, $msg, $mailheaders);
echo "<HTML><HEAD>";
echo "<TITLE>Formulaire envoyer!</TITLE></HEAD><BODY>";
echo "<H1 align=center>Merci, $nom </H1>";
echo "<P align=center>";
echo "Merci de votre demande.</P>";
echo "Nous vous recontacterons rapidement. </P>";
echo "</BODY></HTML>";
?> |
que faire, meric pour votre aide
cordialmeent