PROBLEME AVEC WAMP ET LE PHP
raid85
Messages postés
1
Date d'inscription
Statut
Membre
Dernière intervention
-
maka54 Messages postés 721 Statut Membre -
maka54 Messages postés 721 Statut Membre -
Bonjour,
bonjour
voila ca fait 2 jour que j'essaye d'envoyer un formulaire tout simple avec wampserver, il y a aucune erreur mais je recois pas le mail pourtant j'ai configuré wamp avec mon smtp (smtp.sfr.fr) alors peut etre que ca vient du script :
index.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Document sans nom</title>
</head>
<body>
<p>inscription :</p>
<form method=POST action=formmail.php >
<p>
<select name="civilite">
<option>---</option>
<option>Mr</option>
<option>Mme</option>
<option>Mlle</option>
</select>
<br>
Nom :
<input name="nom" type="text">
<br>
Prénom :
<input name="prenom" type="text">
<br>
adresse :
<input name="adresse" type="text">
<br>
code postal :
<input name="cp" type="text">
<br>
ville :
<input name="ville" type="text">
<br>
e-mail :
<input name="mail" type="text">
</p>
<form name="form1" method="post" action="">
<input type="submit" name="button" id="button" value="Valider">
</form>
</form>
</body>
</html>
formmail.php :
<?php
$TO = "monmail@monmail.fr";
$h = "From: " . $TO;
$message = "";
while (list($key, $val) = each($HTTP_POST_VARS)) {
$message .= "$key : $val\n";
}
mail($TO, $subject, $message, $h);
Header("Location: https://www.google.fr/?gws_rd=ssl");
?>
je debute en php j'ai recuperer le script sur internet pouvez vous m'aidez?
bonjour
voila ca fait 2 jour que j'essaye d'envoyer un formulaire tout simple avec wampserver, il y a aucune erreur mais je recois pas le mail pourtant j'ai configuré wamp avec mon smtp (smtp.sfr.fr) alors peut etre que ca vient du script :
index.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Document sans nom</title>
</head>
<body>
<p>inscription :</p>
<form method=POST action=formmail.php >
<p>
<select name="civilite">
<option>---</option>
<option>Mr</option>
<option>Mme</option>
<option>Mlle</option>
</select>
<br>
Nom :
<input name="nom" type="text">
<br>
Prénom :
<input name="prenom" type="text">
<br>
adresse :
<input name="adresse" type="text">
<br>
code postal :
<input name="cp" type="text">
<br>
ville :
<input name="ville" type="text">
<br>
e-mail :
<input name="mail" type="text">
</p>
<form name="form1" method="post" action="">
<input type="submit" name="button" id="button" value="Valider">
</form>
</form>
</body>
</html>
formmail.php :
<?php
$TO = "monmail@monmail.fr";
$h = "From: " . $TO;
$message = "";
while (list($key, $val) = each($HTTP_POST_VARS)) {
$message .= "$key : $val\n";
}
mail($TO, $subject, $message, $h);
Header("Location: https://www.google.fr/?gws_rd=ssl");
?>
je debute en php j'ai recuperer le script sur internet pouvez vous m'aidez?
A voir également:
- PROBLEME AVEC WAMP ET LE PHP
- Easy php - Télécharger - Divers Web & Internet
- Expert php pinterest - Télécharger - Langages
- Retour a la ligne php - Forum Webmastering
- Alert php - Forum PHP
- Wamp - Télécharger - Divers Web & Internet