Bonjour à tous,
je viens de créer un formulaire de contact (formulaire) celui ci à comme cible (formulairecible) ou je reçois toutes les information demandé et ou le client peu vérifier ces données mais voila le résultat formulairecible je l'envoie par mail a l'aide d'une 3eme pages apeller cible avec une confirmation de l'envoie jusque la tout va bien le problème est que je ne reçois pas de mail.
je recherche depuis vendredi dernier la solution sur les cours, forum, internet...
et ne comprend rien à ce problème)
merci à tous
Voici mes codes:
Formulaire
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
<head>
<title>Fabrication spéciale</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" media="screen" type="text/css" title="design" href="styles\design.css"/>
</head>
<body>
<!-- L'en-tête -->
<?php include("entete.php";); ?>
<?php include("menua.php";);//inclu la page menua.php ?>
<h1>Nous Contacter</h1>
<form method="post" action="formulairecible.php">
<p>
<fieldset>
<legend>Vos Coordonnées</legend> <!-- Titre du fieldset -->
<p><label>Société * :
<input type="text" name="ste" tabindex="90" />
</label>
<label>
Fonction * :
<select name="fonction" tabindex="100">
<option type="text" name="fonction">A Compléter</option>
<option type="text" name="fonction">Acheteur</option>
<option type="text" name="fonction">Chef d'Atelier</option>
<option type="text" name="fonction">Directeur Général</option>
<option type="text" name="fonction">Directeur</option>
<option type="text" name="fonction">Directeur Commercial</option>
<option type="text" name="fonction">Directeur d'Usine</option>
<option type="text" name="fonction">Gérant</option>
<option type="text" name="fonction">Magasinier</option>
<option type="text" name="fonction">Président Directeur Général</option>
<option type="text" name="fonction">Responsable Achats</option>
<option type="text" name="fonction">Responsable Approvisionnement</option>
<option type="text" name="fonction">Responsable Fabrication</option>
<option type="text" name="fonction">Responsable Logistique</option>
<option type="text" name="fonction">Responsable Magasin</option>
<option type="text" name="fonction">Responsable Marketing</option>
<option type="text" name="fonction">Responsable Service Achat</option>
<option type="text" name="fonction">Responsable Service Généraux</option>
<option type="text" name="fonction">Secretaire</option>
<option type="text" name="fonction">Secretaire de Direction</option>
<option type="text" name="fonction">Autre</option>
</select>
</label>
<label>Service * :
<select name="service" tabindex="110">
<option type="text" name="service">A Compléter</option>
<option type="text" name="service">Achats</option>
<option type="text" name="service">Ass. Com.</option>
<option type="text" name="service">Bureau d'études</option>
<option type="text" name="service">Commercial</option>
<option type="text" name="service">Direction</option>
<option type="text" name="service">Expédition</option>
<option type="text" name="service">Maintenance</option>
<option type="text" name="service">Marketing</option>
<option type="text" name="service">Méthodes</option>
<option type="text" name="service">Planning</option>
<option type="text" name="service">Qualité</option>
<option type="text" name="service">Technique</option>
<option type="text" name="service">Autre</option>
</select><br />
</label></p>
<p><label>Civilité * :
<select name="civilite" tabindex="120">
<option type="text" name="civilite">M</option>
<option type="text" name="civilite">Mme</option>
<option type="text" name="civilite">Mlle</option>
</select>
<label>Nom * :
<input type="text" name="nom" tabindex="130" /></label><label>Prénom * :<input type="text" name="prenom" tabindex="140" />
</label></p>
<p><label>Adresse * :
<input type="text" name="adresse" tabindex="150" /></label><label>Code Postal * :<input type="text" name="cp" tabindex="160" /></label><label>Ville * :<input type="text" name="ville" tabindex="170" />
</label></p>
<p></label>Région * :
<select name="region" tabindex="180">
<option type="text" name="region">France IDF</option>
<option type="text" name="region">France Nord</option>
<option type="text" name="region">France Sud</option>
</select></p>
<p><label>Téléphone * :
<input type="text" name="tel" tabindex="190" maxlength="10"/></label><label>Télécopie * :<input type="text" name="fax" tabindex="200" maxlength="10"/></label>
<label>E-mail * :
<input type="text" name="mail" tabindex="210" />
</label></p>
<p>
<label>
Commentaires : <br />
<textarea name="commentaires" rows="3" cols="40" maxlength="255" tabindex="220"></textarea>
</label>
</p>
<p><label>
Votre pseudo :
<input type="text" name="pseudo" value="" maxlength="30" tabindex="230"/>
</label><label> Votre mot de passe :<input type="password" name="pass" maxlength="10" tabindex="240"/>
</label>
</p>
</fieldset>
<input type="submit" value="Validez"tabindex="250" /> <input type="reset" value="Effacer"tabindex="260"/>
</p>
</form>
<br />
<?php include("pied.php"); ?>
</body>
</html>
Puis maintenant
formulairecible (le client vérifie ces données)
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns=
"http://www.w3.org/1999/xhtml" xml:lang=
"fr" >
<head>
<title>Packaging Concept</title>
<meta http-equiv=
"Content-Type" content=
"text/html; charset=iso-8859-1" />
<link rel=
"stylesheet" media=
"screen" type=
"text/css" title=
"design" href=
"styles\design.css"/>
</head>
<body>
<!-- L
'en-tête -->
<?php include("entete.php";);//inclu la page entete.php ?>
<?php include("menua.php";);//inclu la page menua.php ?>
<form method="post" action="cible.php">
<fieldset>
<p><strong>Société : </strong> <?php echo $_POST['ste
']; ?></p>
<p><strong>Fonction : </strong> <?php echo $_POST['fonction
']; ?></p>
<p><strong>Service : </strong> <?php echo $_POST['service
']; ?></p>
<p><strong>Civilité : </strong> <?php echo $_POST['civilite
']; ?></p>
<p><strong>Nom : </strong> <?php echo $_POST['nom
']; ?></p>
<p><strong>Prénom : </strong> <?php echo $_POST['prenom
']; ?></p>
<p><strong>Adresse : </strong> <?php echo $_POST['adresse
']; ?></p>
<p><strong>Code postal : </strong> <?php echo $_POST['cp
']; ?></p>
<p><strong>Ville : </strong> <?php echo $_POST['ville
']; ?></p>
<p><strong>Région : </strong> <?php echo $_POST['region
']; ?></p>
<p><strong>Téléphone : </strong> <?php echo $_POST['tel
']; ?></p>
<p><strong>Télécopie : </strong> <?php echo $_POST['fax
']; ?></p>
<p><strong>E-mail : </strong> <?php echo $_POST['mail']; ?></p>
<p><strong>Commentaires : </strong> <?php echo $_POST['commentaires
']; ?></p>
<p><strong>Votre pseudo : </strong> <?php echo $_POST['pseudo
']; ?></p>
<p><strong>Votre mot de passe : </strong> <?php echo $_POST['pass
']; ?></p>
</fieldset>
<input type='submit
' name='go
' value='Envoyer
' />
<p> <a href="speciale.php">cliquez ici</a> pour revenir à la fabrication spéciale</p>
<?php include("pied.php";); ?>
</body>
</html>
et enfin cible avec le message "Votre message a bien été envoyer"
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns=
"http://www.w3.org/1999/xhtml" xml:lang=
"fr" >
<head>
<title>Packaging Concept</title>
<meta http-equiv=
"Content-Type" content=
"text/html; charset=iso-8859-1" />
<link rel=
"stylesheet" media=
"screen" type=
"text/css" title=
"design" href=
"styles\design.css"/>
</head>
<body>
<!-- L
'en-tête -->
<?php include("entete.php";);//inclu la page entete.php ?>
<?php include("menua.php";);//inclu la page menua.php ?>
<?php
if (isset($_POST['ste
']) AND isset($_POST['fonction
']) AND isset($_POST['service
'])AND isset($_POST['civilite
'])AND isset($_POST['nom
'])AND isset($_POST['prenom
'])AND isset($_POST['adresse
'])AND isset($_POST['cp
'])AND isset($_POST['ville
'])AND isset($_POST['region
'])AND isset($_POST['tel
'])AND isset($_POST['fax
'])AND isset($_POST['mail'])AND isset($_POST['commentaires
'])AND isset($_POST['pseudo
'])AND isset($_POST['pass
']))
{
$titre = $_POST['sujet
'];
$tete = "From: www.packagingconcept.com <".$_POST['adresse_email
'].">";
$corps = $_POST['message
'];
mail('contact@packagingconcept.com
', $titre, stripslashes($corps), $tete);
}
?>
<p> Votre message a bien été envoyer </p>
<br /><br />
<?php include("pied.php";); ?>
</body>
</html>
Merci à tous ceux qui pourrons m'aider
@+