Pb création formulaire php

Fermé
D@VID - 13 nov. 2008 à 18:43
Nuk Messages postés 177 Date d'inscription lundi 10 novembre 2008 Statut Membre Dernière intervention 5 mai 2009 - 14 nov. 2008 à 16:15
Bonjour,

J'ai un pb pour la création de mon formulaire en php

J'ai fait mon formulaire, jusqu'ici tt va bien

c o moment de l'envoye ou il y a un pb.

Impossiblible d'envoyer

voici mon code:

<HTML>
<HEAD>
<link type="text/css" rel="stylesheet" href="../../style/pop_feuille.css">
<style TYPE="text/css">
<!--
A:link {color: #FCB322; text-decoration: none}
A:visited {color: #FCB322; text-decoration: none}
A:hover {color: #CCCCCC; text-decoration: none}
-->
</style>
</HEAD>
<BODY>
<CENTER>
<b><FONT SIZE="2"><u>Formulaire Web</u></FONT></b>
</CENTER>
<br>
<form action="../../form2mail.php" method="post" enctype="multipart/form-data">
<CENTER>
<TABLE ALIGN="center" BORDER="0">
<TR><TD ALIGN="right">
<B>Nom :</B>

<INPUT TYPE="text" NAME="nom" SIZE="25" style="background-color: #FFFFFF; color: #7DA7D9;BORDER=0;"><br>
<br>
<B>Prénom <FONT color="#ffFF00">*</FONT> :</B>
<INPUT TYPE="text" NAME="Prenom" SIZE="25" style="background-color: #FFFFFF; color: #7DA7D9;BORDER=0;"><br>
<br>
<B>E-mail <FONT color="#ffFF00">*</FONT> :</B>
<INPUT TYPE="text" NAME="Email" SIZE="25" style="background-color: #FFFFFF; color: #7DA7D9;BORDER=0;"><br>
<br>
<B>Url de votre site :</B>

<INPUT TYPE="text" NAME="Adresse" SIZE="25" style="background-color: #FFFFFF; color: #7DA7D9;BORDER=0;"></FONT><br>
<br></TD></TR>
<TR><TD ALIGN="center"><font face="Verdana" size="1">
<FONT color="#ffFF00">* champs du Formulaire Obligatoire</FONT><BR><BR>
<b>Tapez votre texte en dessous <FONT color="#ffFF00">*</FONT></b><br>
<TEXTAREA NAME="Texte" COLS="40" ROWS="10" WRAP="virtual" style="background-color: #FFFFFF; color: #7DA7D9;BORDER=0;"></TEXTAREA>
<br><br>
<input type="submit" name="ok" value="Validez" style="background-color: #FFFFFF; color: #7DA7D9;">   
<INPUT TYPE="reset" NAME="Effacer" VALUE="Effacer" style="background-color: #FFFFFF; color: #7DA7D9;">
</CENTER></FONT>


</TD></TR></TABLE>

</form>


Merci d'avance
@+
D@VID
A voir également:

7 réponses

Nuk Messages postés 177 Date d'inscription lundi 10 novembre 2008 Statut Membre Dernière intervention 5 mai 2009 20
13 nov. 2008 à 18:44
Montre le code php s'il te plait :)
0
OH FAIT J AI PS TELLEMENT DE CODE PHP C SA MON CODE
0
Nuk Messages postés 177 Date d'inscription lundi 10 novembre 2008 Statut Membre Dernière intervention 5 mai 2009 20
13 nov. 2008 à 18:48
Lolz !!!!!

C'est le code php qui te permet d'envoyer le mail....

Tu ne sais pas programmer en php :)
0
en gros c sa
0
Nuk Messages postés 177 Date d'inscription lundi 10 novembre 2008 Statut Membre Dernière intervention 5 mai 2009 20
13 nov. 2008 à 18:51
Jvais te faire un cadeau^^

Jvais te passer un code de formulaire qui mqrche, ce sera a toi de l'adapter....mais je te conseille de jeter un oeil a ce site:
https://openclassrooms.com/fr/courses/918836-concevez-votre-site-web-avec-php-et-mysql
0
Nuk Messages postés 177 Date d'inscription lundi 10 novembre 2008 Statut Membre Dernière intervention 5 mai 2009 20
13 nov. 2008 à 18:52
Le html :

<HTML>
<HEAD>
<TITLE>E-Mail Formulaire</TITLE>
<link rel="stylesheet" type="text/css" href="/mail/style_css_pierreluc.css" />

</HEAD>
<BODY>
<FORM method="POST" action="envoi.php">



<P>Nombre : <br>
<INPUT type="text" name="nombre" size=30>
</p>

<P>Apellidos : <br>
<INPUT type="text" name="apellidos" size=30>
</p>

<P>Direccion : <br>
<INPUT type="text" name="direccion" size=30>
</p>

<form id="telefono" font="12px">
<table>

<tr>
<td>
<P>Telefono: <br>
<INPUT type="text" name="telefono" size=30> </p>
</td>

<td>
<P>Telefono movil: <br>
<INPUT type="text" name="movil" size=30>
</p>
</td>
</tr>

</table>
</form>

<P>Tu e-mail : <br>
<INPUT type="text" name="mail" size=30>
</p>


<P>Commentarios :<br>
<textarea name="commentarios" cols=30 rows=5></textarea>



<P>Tu espacio web : <br>
<INPUT type="text" name="espacio" size=30>
</p>


</p><INPUT type="submit" value="Envoyer">
</FORM>
</BODY>
</HTML>
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
Nuk Messages postés 177 Date d'inscription lundi 10 novembre 2008 Statut Membre Dernière intervention 5 mai 2009 20
13 nov. 2008 à 18:53
et le php :

<?php

$nombre=$_POST['nombre'];
$apellidos=$_POST['apellidos'];
$direccion=$_POST['direccion'];
$telefono=$_POST['telefono'];
$movil=$_POST['movil'];
$mail=$_POST['mail'];
$commentarios=$_POST['commentarios'];
$espacio=$_POST['espacio'];


$msg = "Nombre: $nombre\n";
$msg .= "Apellidos: $apellidos\n";
$msg .= "Direccion: $direccion\n";
$msg .= "Telefono: $telefono\n";
$msg .= "Movil: $movil\n";
$msg .= "E-Mail: $mail\n";
$msg .= "Commentarios: $commentarios\n";
$msg .= "Espacio: $espacio\n\n";
//Pourait continuer ainsi jusqu'à la fin du formulaire

$recipient = "l'adresse mail du destinataire ";
$subject = "CV";

$headers = 'From: '.$mail;
//$mailheaders .= "Reply-To: $mail\n\n";

mail($recipient, $subject, $msg, $headers);

echo "<HTML><HEAD>";
echo "<TITLE>Formulaire envoyé!</TITLE></HEAD><BODY>";
echo "<H3 align=center>Merci, $apellidos </H3>";
echo "<P align=center>";
echo "Votre formulaire a bien été envoyé !</P>";
echo "</BODY></HTML>";

?>
0
merci a toi nuk,

il fait que je mette les deux?
oh fait je suis un peu novice ds le domaine php
0
j'ai reussi a créer mon formulaire
merci a toi nuk

par contre tjs pb envoye du formulaire
merci de votre aide
0
Nuk Messages postés 177 Date d'inscription lundi 10 novembre 2008 Statut Membre Dernière intervention 5 mai 2009 20
14 nov. 2008 à 16:15
Bonjour,

J'ai aussi un probleme avec^^
Je corrige ça et je te recontecte.^^

cordialement.
0