Pb avec mon code php du formulaire contact
Résolu/Fermé
leon81
Messages postés
6
Date d'inscription
samedi 8 mars 2008
Statut
Membre
Dernière intervention
8 mars 2008
-
8 mars 2008 à 11:08
zerobug - 26 juin 2008 à 12:24
zerobug - 26 juin 2008 à 12:24
A voir également:
- Pb avec mon code php du formulaire contact
- Voici du code ascii : - Guide
- Code puk bloqué - Guide
- Code telephone oublié - Guide
- Code blocks free - Télécharger - Langages
- Voici du code ascii : 39 2d 3f 3d 34 décodez-le et résolvez l'énigme trouvée. - Forum Loisirs / Divertissements
13 réponses
sfel
Messages postés
1640
Date d'inscription
lundi 18 juin 2007
Statut
Membre
Dernière intervention
15 juillet 2009
430
8 mars 2008 à 11:36
8 mars 2008 à 11:36
Bonjour,
si tu passe ton formulaire en method="get" pour tester, des informations sont-elles envoyées ??
si tu passe ton formulaire en method="get" pour tester, des informations sont-elles envoyées ??
croy
Messages postés
453
Date d'inscription
samedi 19 janvier 2008
Statut
Membre
Dernière intervention
23 octobre 2012
114
8 mars 2008 à 11:42
8 mars 2008 à 11:42
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.
Tu ne nous donnes pas le source de ce script, il est donc difficile de t'aider.
Alain_42
Messages postés
5361
Date d'inscription
dimanche 3 février 2008
Statut
Membre
Dernière intervention
13 février 2017
894
8 mars 2008 à 12:12
8 mars 2008 à 12:12
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:
si ce script mail est bien dans le même répertoire que ton formulaire.
sinon met le chemin correspondant.
<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.
leon81
Messages postés
6
Date d'inscription
samedi 8 mars 2008
Statut
Membre
Dernière intervention
8 mars 2008
8 mars 2008 à 12:35
8 mars 2008 à 12:35
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>
<!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>
sfel
Messages postés
1640
Date d'inscription
lundi 18 juin 2007
Statut
Membre
Dernière intervention
15 juillet 2009
430
8 mars 2008 à 13:00
8 mars 2008 à 13:00
rebonjour,
tu n'as pas une once de php dans ce code.
c'est normal que tu ne reçoive aucune information.
tu n'as pas une once de php dans ce code.
c'est normal que tu ne reçoive aucune information.
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question
leon81
Messages postés
6
Date d'inscription
samedi 8 mars 2008
Statut
Membre
Dernière intervention
8 mars 2008
8 mars 2008 à 13:02
8 mars 2008 à 13:02
ah lol tu peut m aidé a faire fonctioné mon formulaire ^^ merci
croy
Messages postés
453
Date d'inscription
samedi 19 janvier 2008
Statut
Membre
Dernière intervention
23 octobre 2012
114
8 mars 2008 à 13:07
8 mars 2008 à 13:07
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.
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.
leon81
Messages postés
6
Date d'inscription
samedi 8 mars 2008
Statut
Membre
Dernière intervention
8 mars 2008
8 mars 2008 à 13:10
8 mars 2008 à 13:10
lol sa peu etre une bonne solus
mais deja suis je sur la bonne voie ?
mais deja suis je sur la bonne voie ?
croy
Messages postés
453
Date d'inscription
samedi 19 janvier 2008
Statut
Membre
Dernière intervention
23 octobre 2012
114
8 mars 2008 à 13:37
8 mars 2008 à 13:37
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[ '...' ]
leon81
Messages postés
6
Date d'inscription
samedi 8 mars 2008
Statut
Membre
Dernière intervention
8 mars 2008
8 mars 2008 à 13:39
8 mars 2008 à 13:39
pourait tu me donné un exemple pour ke j essayé stp merci
croy
Messages postés
453
Date d'inscription
samedi 19 janvier 2008
Statut
Membre
Dernière intervention
23 octobre 2012
114
8 mars 2008 à 14:24
8 mars 2008 à 14:24
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 ?
<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 ?
leon81
Messages postés
6
Date d'inscription
samedi 8 mars 2008
Statut
Membre
Dernière intervention
8 mars 2008
8 mars 2008 à 14:25
8 mars 2008 à 14:25
je suis chez online
croy
Messages postés
453
Date d'inscription
samedi 19 janvier 2008
Statut
Membre
Dernière intervention
23 octobre 2012
114
8 mars 2008 à 14:27
8 mars 2008 à 14:27
Est-ce-que cet hébergeur supporte PHP ? A toi de vérifier ce point.
Spart
Messages postés
30
Date d'inscription
mardi 4 mars 2008
Statut
Membre
Dernière intervention
27 mai 2008
23
9 mars 2008 à 12:58
9 mars 2008 à 12:58
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)
(pour un site pro tu devrais revoir ton interface graphique y'a du taff)