Pb avec mon code php du formulaire contact

Résolu
leon81 Messages postés 6 Statut Membre -  
 zerobug -
Bonjour,
voici mon code

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Accueil</title>
<style type="text/css">
.style4 {
text-align: center;
}
</style>
<link rel="stylesheet" type="text/css" title="CSS" href="../styles/style1.css" media="screen" />
<style type="text/css">
.style1 {
margin-left: 10px;
}
H4{
font-size: 1.5em;
font-style: italic;
color: #0099FF;
margin:0;
padding:0;
}

br {margin:0; padding:0} h1.reduc{
font-size: 42px;
color: #FFFFFF;
margin:0;
padding:0;
}
H1{padding: 0px 10px; margin:0}
H1 {font-weight:bold}
H1 {font-size: 1.8em}
H1 {margin:0; padding:0}
.depasse {
background-color: #e4f4fe;
width: 300px;
padding:5px;
}
.depasse h4 { padding:5px; margin:0; font-size:12px; font-weight:bold}

.panne {
background-color: #f3fde4;
width: 370px;
padding:5px;
margin-left:180px
}
.panne h4 { padding:5px; margin:0; font-size:12px; font-weight:bold}

.nouveau {
background-color: #eeeeee;
width: 350px;
padding:5px;
margin-left:120px
}
.nouveau h4 { padding:5px; margin:0; font-size:12px; font-weight:bold}

span {margin:0; padding:0}
.important {
font-style: italic;
font-weight: bold;
color: #FF6600;
}
.style22 {
text-align: right;
}
.style24 { text-align: center;
}
.style24 { text-align: center;
}
p{padding: 0px 10px; margin:0}
p {margin:0; padding:0}
.libelle {
width: 120px;
float:left;
clear:left;
margin-right:2px;
text-align:right;
height: 25px;
margin-top: 4px;
}
.textarea10 { background: #eee url('http://www.zerobug.fr/design/img/content_bg.jpg') repeat-x;
border:1px solid #ccc;
margin:2px;
padding:2px;
font-size:11px;
width:60px;
font-family: Arial, Helvetica, sans-serif;
}
select {
background: #eee url('http://www.zerobug.fr/design/img/content_bg.jpg') repeat-x;
border:1px solid #ccc;
margin:2px;
padding:2px;
font-size:11px;
width:250px;
font-family: Arial, Helvetica, sans-serif;
}
.textareacourt { background: #eee url('http://www.zerobug.fr/design/img/content_bg.jpg') repeat-x;
border:1px solid #ccc;
margin:2px;
padding:2px;
font-size:11px;
width:120px;
font-family: Arial, Helvetica, sans-serif;
}
input {
background: #eee url('http://www.zerobug.fr/design/img/content_bg.jpg') repeat-x;
border:1px solid #ccc;
margin:2px;
padding:2px;
font-size:11px;
width:250px;
font-family: Arial, Helvetica, sans-serif;
}
textarea {
background: #eee url('http://www.zerobug.fr/design/img/content_bg.jpg') repeat-x;
border:1px solid #ccc;
margin:2px;
padding:2px;
font-size:11px;
width:250px;
font-family: Arial, Helvetica, sans-serif;
}
.valid { text-align:center}
.bouton{ background: #666 url('http://www.zerobug.fr/design/img/menu_bg.gif') center top;
width:80px; color:#FFF
}
#legende {font-size:0.8em; color:#666}
</style>
</head>

<body style="background-color: #000000; border-right-color: #FF9900; border-left-color: #FF9900; border-color: #FF9900; ">

<!-- Begin Container -->
<div id="container">
<!-- Begin Masthead -->
<div id="masthead" style="width: 627px; height: 200px; border-color: #FF9900; background-color: #FF9900"> <a href="../services.jpg"> <img src="../services.jpg" width="239" height="159" /></a>
<div id="content0">
<h2 style="height: 66px" class="style24">  <span class="style4"> Dépannage
informatique Auziech</span></h2>
<h4 class="style3" style="height: 35px">Un problème avec votre PC ?</h4>
<h4 class="style22" style="height: 56px">Besoin de
conseils pour votre équipement ?</h4>
<h4 align="right" class="style3">Envie d'apprendre ?</h4>
</div>
</div>
<div id="page_content">
<!-- Begin Sidebar -->
<div id="sidebar" class="style1">
<ul>
<li><a href="../index.htm">Accueil</a></li>
<li><a href="../formation/formation.htm">Formations</a></li>
<li><a href="../tarifs/tarifs.htm">Tarifs</a></li>
<li><a href="../depannage/services.htm">Dépannages</a></li>
<li><a href="contact.htm">Contact</a></li>
</ul>
</div>
<!-- End Sidebar -->
<!-- Begin Content -->
<!-- #BeginEditable "content" -->
<div id="content" class="style4">
<div id="centre">
<h1 class="contact">Contactez-nous</h1>
<p>Merci de remplir le formulaire ci-dessous ou d'utiliser
<SCRIPT type=text/javascript>
<!--
var tg="<";
var nom="contact";
var arob="@";
var hote1="zero";
var hote2="bug.fr?subject=Contact à partir du site";
var texte="ce lien";
document.write(tg+"a hr"+"ef=mai"+"lto:"+nom);
document.write(arob+hote1+hote2+">"+texte+tg+"/a>");
-->
</SCRIPT>
<a site="" du="" partir="" à="" href="mailto:docpc@auziech.fr?subject=Contact">
ce lien</a> pour nous écrire à partir de votre messagerie.</p>
<p><br>
</p>
<p>Nous nous engageons à vous répondre dans un délai maximum de 48H. </p>
<form id="form" name="form" method="post" action="http://www.auziech.fr/mail.php">
<div class="libelle">
Titre</div>
<select class="textarea10" name="titre">
<option value="Mr" selected="">Mr</option>
<option value="Mme">Mme</option>
<option value="Mlle">Mlle</option>
</select>              Nom
<input class="textareacourt" name="nom" /> *<br />
<div class="libelle">
Prénom</div>
<input class="textareacourt" name="prenom" /> *Téléphone
<input class="textarea10" name="telephone" /> *<br />
<div class="libelle">
Adresse</div>
<input name="adresse" /> *<br />
<div class="libelle">
Code Postal</div>
<input class="textarea10" maxLength="5" name="codepostal" />
*          Ville <input class="textareacourt" name="ville" />
*<br />
<div class="libelle">
Société</div>
<input class="textarea10" value="particulier" name="societe" />
*       E-mail <input class="textareacourt" name="email" />
*<br />
<br />
<div class="libelle">
Objet du message</div>
<select name="objet">
<option value="" selected="">- Sélectionnez dans la liste -
</option>
<option value="Prise de Rendez-vous pour intervention">Prise
de Rendez-vous pour intervention</option>
<option value="Assistance vente eBay">Assistance vente eBay
</option>
<option value="Devis dépannage">Devis dépannage</option>
<option value="Conseil logiciel">Conseil sur le choix d'un
logiciel</option>
<option value="Question d'ordre général">Question d'ordre
général</option>
<option value="Formation">Formation</option>
<option value="Autre">Autre</option>
</select> <br />
<br />
<div class="libelle">
Quand vous contacter ?</div>
<select name="horaire">
<option value="" selected="">- Sélectionnez dans la liste -
</option>
<option value="8h-10h">8h - 10h</option>
<option value="10h-12h">10h - 12h</option>
<option value="12h-14h">12h - 14h</option>
<option value="14h-16h">14h - 16h</option>
<option value="16h-18h">16h - 18h</option>
<option value="18h-20h">18h - 20h</option>
<option value="20h-22h">20h - 22h</option>
</select> <br />
<br />
<div class="libelle">
Commentaires</div>
<textarea name="commentaires" rows="5" cols="48"></textarea>
<br />
<br />
<div class="libelle">
Comment avez-vous connu Auziech ?</div>
<select name="marketing">
<option value="" selected="">- Sélectionnez dans la liste -
</option>
<option value="moteur de recherche">Moteur de recherche
</option>
<option value="ami">Par un ami</option>
<option value="tract">Tract publicitaire</option>
<option value="pages jaunes internet">Pages jaunes Internet
</option>
<option value="pages jaunes papier">Pages jaunes papier
</option>
<option value="lien site">Lien sur un autre site</option>
<option value="au hasard">Par hasard</option>
</select> <br />
<br />
<div class="valid">
<input class="bouton" type="reset" value="Réinitialiser" name="reset" />
<input class="bouton" onclick="MM_validateForm('nom','','R','telephone','','R','societe','','R','email','','RisEmail');return document.MM_returnValue" type="submit" value="Envoyer" name="Submit" />
</div>
<p id="legende">*
Champs obligatoires</p>
</form>
<p> </p>
<p><strong>      Auziech</strong><br />
      Le bourg <br />
      81350 Saint Jean de Marcel - France <br />
<strong>      Téléphone :</strong> 06
88 03 90 04</p>
<p> </p>
<p> </p>
<p> </p>
<p>  </p>
</div>
</div>
<!-- #EndEditable --></div>
<!-- End Content --></div>
<!-- End Page Content -->
<!-- Begin Footer -->
<!-- End Footer --></div>
<!-- End Container -->

</body>

<!-- #EndTemplate -->

</html>

sa donne sa

http://www.auziech.fr/contact/contact.htm

mon pb est que quand je clik envoyé rien ne se passe

quelqu un pourrai m aidé merci d avance
Configuration: Windows Vista
Internet Explorer 7.0

13 réponses

  1. sfel Messages postés 1645 Statut Membre 430
     
    Bonjour,

    si tu passe ton formulaire en method="get" pour tester, des informations sont-elles envoyées ??
    0
  2. croy Messages postés 457 Statut Membre 114
     
    Si qqch se passe : le script mail.php est bien exécuté.

    Tu ne nous donnes pas le source de ce script, il est donc difficile de t'aider.
    0
    1. Alain_42 Messages postés 5413 Statut Membre 904
       
      Bonjour,

      <form id="form" name="form" method="post" action="http://www.auziech.fr/mail.php">

      pour appeler ton script mail.php

      ce serait mieux de mettre:

      <form id="form" name="form" method="post" action="mail.php"> 


      si ce script mail est bien dans le même répertoire que ton formulaire.

      sinon met le chemin correspondant.
      0
  3. leon81 Messages postés 6 Statut Membre
     
    voici mon scipt php

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">

    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Accueil</title>
    <style type="text/css">
    .style4 {
    text-align: center;
    }
    </style>
    <link rel="stylesheet" type="text/css" title="CSS" href="styles/style1.css" media="screen" />
    <style type="text/css">
    .style1 {
    margin-left: 10px;
    }
    H4{
    font-size: 1.5em;
    font-style: italic;
    color: #0099FF;
    margin:0;
    padding:0;
    }

    br {margin:0; padding:0} h1.reduc{
    font-size: 42px;
    color: #FFFFFF;
    margin:0;
    padding:0;
    }
    H1{padding: 0px 10px; margin:0}
    H1 {font-weight:bold}
    H1 {font-size: 1.8em}
    H1 {margin:0; padding:0}
    .depasse {
    background-color: #e4f4fe;
    width: 300px;
    padding:5px;
    }
    .depasse h4 { padding:5px; margin:0; font-size:12px; font-weight:bold}

    .panne {
    background-color: #f3fde4;
    width: 370px;
    padding:5px;
    margin-left:180px
    }
    .panne h4 { padding:5px; margin:0; font-size:12px; font-weight:bold}

    .nouveau {
    background-color: #eeeeee;
    width: 350px;
    padding:5px;
    margin-left:120px
    }
    .nouveau h4 { padding:5px; margin:0; font-size:12px; font-weight:bold}

    span {margin:0; padding:0}
    .important {
    font-style: italic;
    font-weight: bold;
    color: #FF6600;
    }
    .style22 {
    text-align: right;
    }
    .style24 { text-align: center;
    }
    .style24 { text-align: center;
    }
    p{padding: 0px 10px; margin:0}
    p {margin:0; padding:0}
    .libelle {
    width: 120px;
    float:left;
    clear:left;
    margin-right:2px;
    text-align:right;
    height: 25px;
    margin-top: 4px;
    }
    .textarea10 { background: #eee url('http://www.zerobug.fr/design/img/content_bg.jpg') repeat-x;
    border:1px solid #ccc;
    margin:2px;
    padding:2px;
    font-size:11px;
    width:60px;
    font-family: Arial, Helvetica, sans-serif;
    }
    select {
    background: #eee url('http://www.zerobug.fr/design/img/content_bg.jpg') repeat-x;
    border:1px solid #ccc;
    margin:2px;
    padding:2px;
    font-size:11px;
    width:250px;
    font-family: Arial, Helvetica, sans-serif;
    }
    .textareacourt { background: #eee url('http://www.zerobug.fr/design/img/content_bg.jpg') repeat-x;
    border:1px solid #ccc;
    margin:2px;
    padding:2px;
    font-size:11px;
    width:120px;
    font-family: Arial, Helvetica, sans-serif;
    }
    input {
    background: #eee url('http://www.zerobug.fr/design/img/content_bg.jpg') repeat-x;
    border:1px solid #ccc;
    margin:2px;
    padding:2px;
    font-size:11px;
    width:250px;
    font-family: Arial, Helvetica, sans-serif;
    }
    textarea {
    background: #eee url('http://www.zerobug.fr/design/img/content_bg.jpg') repeat-x;
    border:1px solid #ccc;
    margin:2px;
    padding:2px;
    font-size:11px;
    width:250px;
    font-family: Arial, Helvetica, sans-serif;
    }
    .valid { text-align:center}
    .bouton{ background: #666 url('http://www.zerobug.fr/design/img/menu_bg.gif') center top;
    width:80px; color:#FFF
    }
    #legende {font-size:0.8em; color:#666}
    .style25 {
    text-align: left;
    }
    </style>
    </head>

    <body style="background-color: #000000; border-right-color: #FF9900; border-left-color: #FF9900; border-color: #FF9900; ">

    <!-- Begin Container -->
    <div id="container">
    <!-- Begin Masthead -->
    <div id="masthead" style="width: 627px; height: 200px; border-color: #FF9900; background-color: #FF9900"> <a href="services.jpg"> <img src="services.jpg" width="239" height="159" /></a>
    <div id="content0">
    <h2 style="height: 66px" class="style24">  <span class="style4"> Dépannage
    informatique Auziech</span></h2>
    <h4 class="style3" style="height: 35px">Un problème avec votre PC ?</h4>
    <h4 class="style22" style="height: 56px">Besoin de
    conseils pour votre équipement ?</h4>
    <h4 align="right" class="style3">Envie d'apprendre ?</h4>
    </div>
    </div>
    <div id="page_content">
    <!-- Begin Sidebar -->
    <div id="sidebar" class="style1">
    <ul>
    <li><a href="index.htm">Accueil</a></li>
    <li><a href="formation/formation.htm">Formations</a></li>
    <li><a href="tarifs/tarifs.htm">Tarifs</a></li>
    <li><a href="depannage/services.htm">Dépannages</a></li>
    <li><a href="mail.php">Contact</a></li>
    </ul>
    </div>
    <!-- End Sidebar -->
    <!-- Begin Content -->
    <!-- #BeginEditable "content" -->
    <div id="content" class="style4">
    <div id="centre">

    <h1 class="contact">Contactez-nous</h1>
    <p>Les informations suivantes nous ont été transmises par mail : </p>
    <div class="style25">
    <br>
    <br>
    <u>Votre identité</u> : <br>
    <br>
    <u>Votre adresse</u> : <br>
    <br>
    <u>Votre adresse de messagerie</u> : <br>
    <br>
    <u>Votre numéro de téléphone</u> : <br>
    <br>
    <u>Société</u> : <br>
    <br>
    <u>Raison du message</u> : <br>
    <br>
    <u>Commentaire</u> : <br>
    <br>
    <u>Plage horaire</u> : <br>
    <br>
    <u>Votre adresse IP</u> : <br>
    <br>
    <u>Votre navigateur</u> : <br>
    <br>
    <u>Votre système d'exploitation</u> : <br>
    <br>
    </div>
    <p class="style25">Merci pour votre message.<br>
    Nous vous répondrons dans les meilleurs délais.<br>
    </p>
    <p> </p>
    <p><strong>      Auziech</strong><br />
          Le bourg <br />
          81350 Saint Jean de Marcel - France <br />
    <strong>      Téléphone :</strong> 06
    88 03 90 04</p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p>  </p>
    </div>
    </div>
    <!-- #EndEditable --></div>
    <!-- End Content --></div>
    <!-- End Page Content -->
    <!-- Begin Footer -->
    <!-- End Footer --></div>
    <!-- End Container -->

    </body>

    <!-- #EndTemplate -->

    </html>
    0
  4. sfel Messages postés 1645 Statut Membre 430
     
    rebonjour,

    tu n'as pas une once de php dans ce code.
    c'est normal que tu ne reçoive aucune information.
    0
  5. Vous n’avez pas trouvé la réponse que vous recherchez ?

    Posez votre question
  6. leon81 Messages postés 6 Statut Membre
     
    ah lol tu peut m aidé a faire fonctioné mon formulaire ^^ merci
    0
  7. croy Messages postés 457 Statut Membre 114
     
    On peux t'aider mais je pense qu'il est d'abord indispensable que tu t'inities à php.

    Google : tuto php devrait te donner plusieurs tutoriels pertinent.

    Cette phase initiale est nécessaire car sans elle il faudra que nous dveloppions ton formulaire pour toi.
    0
  8. leon81 Messages postés 6 Statut Membre
     
    lol sa peu etre une bonne solus
    mais deja suis je sur la bonne voie ?
    0
    1. croy Messages postés 457 Statut Membre 114
       
      Oui : il te faut modifier mail.php pour y intégrer des instructions php pour récupérer les valeurs saisies dans le formulaire de premier niveau avec $_POST[ '...' ]
      0
  9. leon81 Messages postés 6 Statut Membre
     
    pourait tu me donné un exemple pour ke j essayé stp merci
    0
  10. croy Messages postés 457 Statut Membre 114
     
    Exemple pour le nom :

    <br>
    <u>Votre identité</u> : <br>
    <br>

    deviendra

    <br>
    <u>Votre identité</u> : <?php echo $_POST['nom']; ?><br>
    <br>

    As-tu vérifié que ton hébergeur supprotait le PHP ?
    0
  11. leon81 Messages postés 6 Statut Membre
     
    je suis chez online
    0
  12. croy Messages postés 457 Statut Membre 114
     
    Est-ce-que cet hébergeur supporte PHP ? A toi de vérifier ce point.
    0
  13. Spart Messages postés 30 Statut Membre 23
     
    verifie ton hebergeur en premier, cela dit je viens de tester et le formulaire à l'air de fonctionner...
    (pour un site pro tu devrais revoir ton interface graphique y'a du taff)
    0
  14. zerobug
     
    Le plus simple aurait peut-être été de demander déjà l'autorisation à celui qui a fait le formulaire (en l'occurence, moi).
    Pour info, cette personne a carrément pompé tout mon site pour en faire le sien.
    Lorsque je l'ai appelé et menacé, il a bien sûr retiré son site......
    0