Au secours!!!
je viens de me rendre compte que le formulaire de mon client est ok avec Mozi Firefox mais que IE bloque l'envoi du formulaire. Le form comprend un capcha simple dy type 2+2=
Je ne vois plus rien
Problème de code php avec IE (balises ???)
Merci de me dire
Merci!

voici le code
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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
 <?php 
 
// récupération des variables
 
 
 
$i=0;
 
 
 
foreach ($_POST as $key => $value){
 
	if ($i == 0) {$allpost = '&'.$key.'='.$value;}
 
	if ($i>0) {$allpost .= '&'.$key.'='.$value;}
 
 
 
	$i++;
 
}
 
$name = $_POST['name'];
 
$tel = $_POST['tel'];
 
$adresse = $_POST['adresse'];
 
$ville = $_POST['ville'];
 
$mail = $_POST['mail'];
 
 
 
 
 
$codepostal = $_POST['codepostal'];
 
$capcha = $_POST['capcha'];
 
 
 
$doc = $_POST['doc'];
 
$appel = $_POST['appel'];
 
 
 
$desinsectisation = $_POST['desinsectisation'];
 
$desinfection = $_POST['desinfection'];
 
$demoustication = $_POST['demoustication'];
 
$jardin = $_POST['jardin'];
 
$denrees = $_POST['denrees'];
 
 
 
$deratisation1 = $_POST['deratisation'];
 
 
 
$depigeonnage = $_POST['depigeonnage'];
 
$chauvesouris = $_POST['chauvesouris'];
 
 
 
$preventif = $_POST['preventif'];
 
$curatif = $_POST['curatif'];
 
$charpentes = $_POST['charpentes'];
 
$art = $_POST['art'];
 
 
 
$franchise = $_POST['franchise'];
 
 
 
$message = $_POST['message'];
 
 
 
 
 
// On peuple
 
if (!empty($desinsectisation)) {$un = '<li>désinsectisation</li>'."\n";}
 
if (!empty($desinfection)) {$deux = '<li>désinfection</li>'."\n";}
 
if (!empty($demoustication)) {$trois = '<li>démoustication</li>'."\n";}
 
if (!empty($jardin)) {$quatre = '<li>traitement des jardins</li>'."\n";}
 
if (!empty($denrees)) {$onze = '<li>fumigation des denrées stockées</li>'."\n";}
 
 
 
if (!empty($deratisation)) {$cinq = '<li>deratisation</li>'."\n";}
 
if (!empty($depigeonnage)) {$six = '<li>depigeonnage</li>'."\n";}
 
if (!empty($chauvesouris)) {$sept = '<li>chauve-souris</li>'."\n";}
 
 
 
if (!empty($preventif)) {$huit = '<li>traitement préventif anti-termites</li>'."\n";}
 
if (!empty($curatif)) {$neuf = '<li>traitement curatif anti-termites</li>'."\n";}
 
if (!empty($charpentes)) {$douze = '<li>traitement des charpentes</li>'."\n";}
 
if (!empty($art)) {$treize = '<li>fumigation du mobilier et des objets d\'art</li>'."\n";}
 
 
 
if (!empty($franchise)) {$dix = '<li>demande d\'informations sur la franchise</li>'."\n";}
 
 
 
if (!empty($doc)) {$doc = 'oui';} else {$doc = 'non';}
 
if (!empty($appel)) {$appel = 'oui';} else {$appel = 'non';}
 
 
 
 
 
 
 
	$html = '<h3>Données client :</h3><span style="text-transform:uppercase; font-size:large;">'.$name.'</span></strong><br />';
 
	$html .= 'Téléphone: '.$tel.'<br />Adresse: '.$adresse.'<br />Ville: '.$ville.'<br/>Mail : <a href="mailto:'.$mail.'">'.$mail.'</a><br />Code Postal: '.$codepostal.'<br />';
 
	$html .= 'Demande de documentation: '.$doc.'<br />';
 
	$html .= 'Appeler le client pour un devis gratuit: '.$appel.'<br />';
 
	$html .= '<h3>Rendez-vous souhaité:</h3><strong>Le client souhaite un rendez-vous pour:</strong><br />';
 
	$html .= '<ul>'.$un.$deux.$trois.$quatre.$onze.$cinq.$six.$sept.$huit.$neuf.$douze.$treize.$dix.'</ul><br />';
 
	$html .= '<h3>Commentaires : </h3>'.stripslashes(nl2br($message));
 
 
 
 
 
if ($capcha == 4) {
 
	if (mb_eregi("^[0-9a-z]([-_.]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\.[a-z]{2,3}$", $mail) ) {
 
 
 
		//header html
 
		$headers = 'MIME-Version: 1.0' . "\n";
 
		$headers .= 'Content-type: text/html; charset=utf-8' . "\n";
 
		$headers .= 'From: "Stopinsectes.com"<reunion@stopinsectes.com>'."\n";
 
		$headers .= 'Bcc: guillem@c-carre.com,guillem_canal@ho...er@c-carre.com'."\n";
 
		$reply = $headers.'Reply-to: <a href="mailto:reunion@stopinsectes.com">reunion@stopinsectes.com</a>'."\n"; 
 
 
 
		  if( mail('reunion@stopinsectes.com','Formulaire Stop Insectes', $html, $reply) ){
 
			echo '<p><span class="blockquote">les informations on bien été envoyées</span></p>';
 
		  }
 
		  else{
 
			echo '<p><span class="blockquote">La fonction mail() est désactivée sur ce serveur.</p>';
 
		  }
 
 
 
	} else {
 
	echo '<p><span class="blockquote">Veuillez vérifier votre adresse mail.</p>';
 
	}
 
 
 
} else {
 
echo '<p><span class="blockquote">Veuillez vérifier le code de sécurité</p>';
 
}
 
 
 
 
 
?>