A l'aide !!!,
Je n'arrive pas à envoyer les formulaires qui sont à remplir pour l'utilisateur
vers un mail. Il y a une faute à la ligne 30 dans le fichier "envoi.php".
Je ne sais pas si j'ai choisie la bonne méthode pour envoyer ces formulaires
car je fais ça pour la première fois.
Y'à t-il qq'un qui puisse m'aider SVP !!!![]()
Merci.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164 <html> <head> <title>inscription cours SSS</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script language="JavaScript"> //La fonction JavaScript qui vérifie si les champs obligatoirs du formulaire ont été bien remplis <!-- function envoie(formulaire) { if ( (document.getElementById('nom').value.length>0) &&(document.getElementById('fonction').value.length>0) &&(document.getElementById('entreprise').value.length>0) &&(document.getElementById('adresse1').value.length>0) &&(document.getElementById('code postal').value.length>0) &&(document.getElementById('ville').value.length>0) &&(document.getElementById('telephone').value.length>0) &&(document.getElementById('courriel').value.length>0) ){ formulaire.submit(); } else alert('IMPOSSIBLE D\' ENVOER LE FORMULAIRE, VOUS AVEZ OUBLIEZ DE REMPLIRE DES CHAMPS OBLIGATOIRS'); } --> </script> <style type="text/css"> <!-- .Style4 { font-size: 16px; font-weight: bold; } .Style10 {font-size: 18px; font-weight: bold; } .Style11 { font-size: 36px; font-weight: bold; } body { background-image: url(neige.png); background-attachment: fixed; /* Le fond restera fixe */} --> </style> </head> <body> <form action="envoi.php" method="post" name="form_contacts" id="form_contacts"> <table> <table border="1"> <th width="141">Nom*</th> <th width="141">Prenom</th> <th width="141">Fonction*</th> <th width="141">Entreprise*</th> <th width="141">Adresse1*</th> <th width="141">Adress2</th> <th width="141">Code postal</th> <th width="141">Ville*</th> <th width="141">Pays</th> <th width="141">Telephone*</th> <th width="141">Courriel*</th> <tr> <td><input name="nom" type="text" id="nom"> </td> <td><input name="prenom" type="text" id="prenom"> </td> <td><input name="fonction" type="text" id="fonction"> </td> <td><input name="entreprise" type="text" id="entreprise"> </td> <td><input name="adresse1" type="text" id="adresse1"> </td> <td><input name="adresse2" type="text" id="adresse2"> </td> <td><input name="codepostal" type="text" id="codepostal"> </td> <td><input name="ville" type="text" id="ville"> </td> <td><input name="pays" type="text" id="pays"> </td> <td><input name="telephone" type="text" id="telephone"> </td> <td><input name="courriel" type="text" id="courriel"> </td> </tr> <strong>*Champs a renseigner obligatoirement!</strong> </table> <br> <div align="right"> <table border="1"> <tr> <td> Marche Concerné:</td> <td> <select name="marche" id="marche">style="BACKGROUND-COLOR: gainsboro"> <!-- on affecte à la val. "lien" la val. choisie par l'utilisateur --> <option value="Alimentaire">Alimentair</option> <!-- en validant la val."lundi" on se retrouve dans la page "Jour2.php" cela affichera le planning annuel des lundis du mois courant--> <option value="Boissons">Boissons</option> <option value="Cosmetique">Cosmetique</option> <option value="Loisirs">Loisirs</option> <option value="Pharmacie">Pharmacie</option> <option value="Parapharmacie">Parapharmacie</option> <option value="Technique">Technique</option> </select> </td> </tr> </table> </div> <br> <div align="left" id="jj"> <table border="1"> <tr> <strong> Je suis interesse par:</strong> <td> Bouteilles aluminuim</td> <td> Contenance(ml)</td> <td> Quantite</td> </tr> <tr> <td><input type="radio" name="tt" value="oui" id="tt" /> Oui <input type="radio" name="tt" value="non" id="tt"/> Non</td> <td><input type="text" name="Contenance" id="Contenance"/> </td> <td><input type="text" name="Quantite" id="Quantite"/> </td> </tr> </table> <br> <table border="1"> <tr> <strong> Je suis interesse par:</strong> <td> Aerosols</td> <td> Contenance(ml)</td> <td> Quantite</td> </tr> <tr> <td><input type="radio" name="ff" value="oui" id="ff" /> Oui <input type="radio" name="ff" value="non" id="ff" /> Non</td> <td><input type="text" name="Contenances" id="Contenances"/> </td> <td><input type="text" name="Quantites" id="Quantites"/> </td> </tr> </table> <br> <table border="1"> <tr> <strong> Echeance du projet:</strong> <td> <select name="echeance" id="echeance"> <!-- on affecte à la val. "lien" la val. choisie par l'utilisateur --> <option value="3 mois">3 mois</option> <!-- en validant la val."lundi" on se retrouve dans la page "Jour2.php" cela affichera le planning annuel des lundis du mois courant--> <option value="6 mois">6 mois</option> <option value="12 mois">12 mois</option> </select> </td> </tr> </table> </div> <br> <table border="1"> <tr> <strong> Nombre de decors:</strong> <td> <input type="text" name="decors" id="decors" /> </td> </tr> </table> </table> <div align="right"> <table border="1"> <tr> <strong>Commentaire:</strong> <td><textarea name="message" id="message" rows="8" cols="45">Votre message ici.</textarea></td> </tr> </table> </div> <p align="center"> <input name="retablir" type="submit" id="retablir" value="Rétablir"> <input name="envoyer" type="submit" id="envoyer" value="Envoyer" onClick="envoie(this.form)"></p> </table> </form> </body> </html>
Partager