Bonjour,

J'ai crée un formulaire il y a quelque mois qui marchait parfaitement,

voici le code :
je sais c'est assez long, le problème est qu'avant on recevais un mail avec un tableau recapitulatif, aujourd'hui on ne reçois plus de mail. J'ai contacter par mail l'hébergeur pour savoir si il avait changer une configuration et il m'a dit que sa ne venait pas de chez eux, un peut difficile a croire surtout que le code n'a pas bouger et que du jour au lendemain sa ne marche plus.

Pourriez vous me donner une solution pour ce code ou si vous constaté des solutions sur celui ci.

Merci d'avance

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
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
<?
$com = $_GET['com'];
 
if ($com == formulaire)
{
 
 
 
?>
<body>
<p align="center">&nbsp;</p>
<table width="800" border="0" align="center" cellspacing="0">
<tr bgcolor="#333333">
  <td width="2" bgcolor="#FFFFFF">&nbsp;</td>
  <td colspan="3" bgcolor="#FFFFFF">&nbsp;</td>
  <td width="2" bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr bgcolor="#333333">
  <td height="21" bgcolor="#FFFFFF">&nbsp;</td>
  <td colspan="3" align="center" bgcolor="#FFFFFF"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','750','height','230','src','banniere_formulaire2','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','banniere_formulaire2' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="750" height="230">
    <param name="movie" value="banniere_formulaire2.swf">
    <param name="quality" value="high">
    <embed src="banniere_formulaire2.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="750" height="230"></embed>
  </object></noscript></td>
  <td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
  <td height="20" bgcolor="#FFFFFF">&nbsp;</td>
  <td width="7" bgcolor="#FFFFFF">&nbsp;</td>
  <td width="953" align="left" bgcolor="#FFFFFF">
 
  <form method="post" action="index.php?com=envoi_mail"  name="f1">
      <p>&nbsp;</p>
      <div align="left">
      <table width="801" border="0" align="center" cellspacing="0">
            <tr>
              <td colspan="3" class="Style39">Tout les champs doivent &ecirc;tre remplis</td>
            </tr>
            <tr>
              <td class="Style65">&nbsp;</td>
              <td width="42" rowspan="3">&nbsp;</td>
              <td class="Style65">&nbsp;</td>
            </tr>
            <tr>
              <td width="304" class="Style65">&nbsp;</td>
              <td width="308" class="Style65">&nbsp;</td>
            </tr>
            <tr>
              <td><label>
                <span class="Style66">Date du bon de commande :</span>
                <select name="date" id="date">
                  <option selected>--</option>
                  <option>01</option>
                  <option>02</option>
                  <option>03</option>
                  <option>04</option>
                  <option>05</option>
                  <option>06</option>
                  <option>07</option>
                  <option>08</option>
                  <option>09</option>
                  <option>10</option>
                  <option>11</option>
                  <option>12</option>
                  <option>13</option>
                  <option>14</option>
                  <option>15</option>
                  <option>16</option>
                  <option>17</option>
                  <option>18</option>
                  <option>19</option>
                  <option>20</option>
                  <option>21</option>
                  <option>22</option>
                  <option>23</option>
                  <option>24</option>
                  <option>25</option>
                  <option>26</option>
                  <option>27</option>
                  <option>28</option>
                  <option>29</option>
                  <option>30</option>
                  <option>31</option>
                </select>
                <select name="mois" id="mois">
                  <option>-------------</option>
                  <option>Janvier</option>
                  <option>F&eacute;vrier</option>
                  <option>Mars</option>
                  <option>Avril</option>
                  <option>Mai</option>
                  <option>Juin</option>
                  <option>Juillet</option>
                  <option>Ao&ucirc;t</option>
                  <option>Septembre</option>
                  <option>Octobre</option>
                  <option>Novembre</option>
                  <option>D&eacute;cembre</option>
                </select>
                <select name="annee" id="annee">
                  <option>----</option>
                  <option>2009</option>
                  <option>2010</option>
                  <option>2011</option>
                  <option>2012</option>
              </select>
              </label></td>
              <td><label><span class="Style66">Code CE :</span><span class="Style65">
              <input name="code_ce" type="text" id="code_ce" size="30">
              </span></label></td>
            </tr>
        </table>
      </div>
      <p align="left" class="Style35">&nbsp;</p>
      <p align="left" class="Style35">&nbsp;</p>
      <table width="432" border="0" align="left" cellspacing="0">
      <tr bgcolor="#333333">
        <td bgcolor="#FFFFFF" class="Style40"><table width="432" border="0" align="left" cellspacing="0">
          <tr bgcolor="#333333">
            <td bgcolor="#FFFFFF" class="Style40"><span class="Style66">Facture &agrave; : </span></td>
            <td bgcolor="#FFFFFF" class="Style40">&nbsp;</td>
          </tr>
          <tr bgcolor="#333333">
            <td width="123" bgcolor="#FFFFFF" class="Style40"><span class="Style60">Nom :</span></td>
            <td width="225" bgcolor="#FFFFFF" class="Style45"><label></label>
              <span class="Style37">
                <input type="text" name="nom" id="nom" size="25">
                *</span></td>
          </tr>
          <tr bgcolor="#333333">
            <td bgcolor="#FFFFFF" class="Style40"><span class="Style60">Soci&eacute;t&eacute; :</span></td>
            <td bgcolor="#FFFFFF" class="Style45"><label></label>
              <span class="Style37">
                <input type="text" name="societe" id="societe" size="25">
                *</span></td>
          </tr>
          <tr bgcolor="#333333">
            <td bgcolor="#FFFFFF" class="Style40"><span class="Style60">Adresse :</span></td>
            <td bgcolor="#FFFFFF" class="Style45"><label></label>
              <span class="Style37">
                <input type="text" name="adresse" id="adresse" size="25">
                *</span></td>
          </tr>
          <tr bgcolor="#333333">
            <td bgcolor="#FFFFFF" class="Style60">Code postale : </td>
            <td bgcolor="#FFFFFF" class="Style45"><span class="Style46">
              <input name="code" type="text" id="code" size="5">
            </span><span class="Style60">*</span></td>
          </tr>
          <tr bgcolor="#333333">
            <td bgcolor="#FFFFFF" class="Style40"><span class="Style60">Ville :</span></td>
            <td bgcolor="#FFFFFF" class="Style45"><label>
              <input type="text" name="ville" id="ville" size="25">
            </label>
              <span class="Style37">*</span></td>
          </tr>
          <tr bgcolor="#333333">
            <td bgcolor="#FFFFFF" class="Style40"><span class="Style60">T&eacute;l&eacute;phone :</span></td>
            <td bgcolor="#FFFFFF" class="Style40"><span class="Style37"> <span class="Style46">
              <input name="tel" type="text" id="tel" size="16">
              *</span></span></td>
          </tr>
          <tr>
            <td bgcolor="#FFFFFF" class="Style40"><span class="Style60">Mail :</span></td>
            <td bgcolor="#FFFFFF" class="Style40"><span class="Style37"> <span class="Style46">
              <input name="mail" type="text" id="mail" size="25">
              *</span></span></td>
          </tr>
        </table>          <span class="Style37"><span class="Style46"></span></span></td>
      </tr>
      </table>
      <table width="384" border="0" align="center" cellspacing="0">
        <tr>
          <td colspan="2" class="Style66">Exp&eacute;dier &agrave; : </td>
        </tr>
        <tr bgcolor="#333333">
          <td width="158" bgcolor="#FFFFFF" class="Style40"><span class="Style60">Nom :</span></td>
          <td width="222" bgcolor="#FFFFFF" class="Style45"><label></label>
              <span class="Style37">
              <input type="text" name="nom2" id="nom2" size="25">
                *</span></td>
        </tr>
        <tr bgcolor="#333333">
          <td bgcolor="#FFFFFF" class="Style40"><span class="Style60">Soci&eacute;t&eacute; :</span></td>
          <td bgcolor="#FFFFFF" class="Style45"><label></label>
              <span class="Style37">
              <input type="text" name="societe2" id="societe2" size="25">
                *</span></td>
        </tr>
        <tr bgcolor="#333333">
          <td bgcolor="#FFFFFF" class="Style40"><span class="Style60">Adresse :</span></td>
          <td bgcolor="#FFFFFF" class="Style45"><label></label>
              <span class="Style37">
              <input type="text" name="adresse2" id="adresse2" size="25">
                *</span></td>
        </tr>
        <tr bgcolor="#333333">
          <td bgcolor="#FFFFFF" class="Style60">Code postale : </td>
          <td bgcolor="#FFFFFF" class="Style45"><span class="Style46">
            <input name="code2" type="text" id="code2" size="5">
          </span><span class="Style60">*</span></td>
        </tr>
        <tr bgcolor="#333333">
          <td bgcolor="#FFFFFF" class="Style40"><span class="Style60">Ville :</span></td>
          <td bgcolor="#FFFFFF" class="Style45"><label>
            <input type="text" name="ville2" id="ville2" size="25">
            </label>
              <span class="Style37">*</span></td>
        </tr>
        <tr bgcolor="#333333">
          <td bgcolor="#FFFFFF" class="Style40"><span class="Style60">T&eacute;l&eacute;phone :</span></td>
          <td bgcolor="#FFFFFF" class="Style40"><span class="Style37"> <span class="Style46">
            <input name="tel2" type="text" id="tel2" size="16">
            *</span></span></td>
        </tr>
      </table>
      <p align="left">
      <label></label>
    </p>
      <p align="left">&nbsp;</p>
      <p align="left">&nbsp;</p>
  <table width="826">
    <tr><td width="97" height="26" class="Style66"><div align="center" class="Style66">
      <div align="center">Quantit&eacute;s</div>
    </div></td>
      <td width="90" class="Style66"><div align="center" class="Style66">
        <div align="center">R&eacute;f&eacute;rence</div>
      </div></td>
      <td width="286" class="Style66"><div align="center">Description du produit</div></td><td width="197" class="Style66"><div align="center" class="Style66">
        <div align="center">Prix unitaire H.T</div>
      </div></td><td width="132"><div align="center" class="Style66">
        <div align="left" class="Style66">
          <div align="center">Montant total H.T.</div>
        </div>
      </div></td></tr>
<tr><td>
 
    <div align="center">
      <input type="text" size="3" name="c1" onChange="calculerPrix(this);">
      </div></td>
  <td><div align="center" class="Style68">
    <div align="center">CVN</div>
  </div></td>
  <td class="Style60"><div align="left" class="Style69">
    <div align="center">50 DOSSIERS COMMANDE CVN</div>
  </div></td><td> 
        <div align="left" class="Style69">
          <div align="center"><span class="Style70">40,00</span>
            <input name="c1unite" type="hidden" value="40,00">
          </div>
      </div></td><td> 
 
              <div align="center">
                <input name="c1prix" type="text" readonly size="6" value="0.00">
              </div></td></tr>
<tr><td>
 
    <div align="center">
      <input type="text" size="3" name="c2" onChange="calculerPrix(this);">
      </div></td>
  <td class="Style60"><div align="left" class="Style69">
    <div align="center">LVN</div>
  </div></td>
  <td class="Style60"><div align="left" class="Style69">
    <div align="center">50 DOSSIERS LIVRAISON LVN</div>
  </div></td><td> 
    <div align="left" class="Style69">
      <div align="center"><span class="Style70">40,00</span>
        <input name="c2unite" type="hidden" value="40,00">
      </div>
    </div></td><td>
 
            <div align="center">
              <input type="text" name="c2prix" size="6" value="0.00" readonly>
            </div></td></tr>
<tr><td>
 
    <div align="center">
      <input type="text" size="3" name="c3" onChange="calculerPrix(this);">
      </div></td>
  <td><div align="center" class="Style68">
    <div align="center">REPVO</div>
  </div></td>
  <td class="Style60"><div align="left" class="Style69">
    <div align="center">25 FICHES ESTIMATION REPVO</div>
  </div></td><td> <div align="left" class="Style69">
    <div align="center"><span class="Style70">40,00</span>
      <input name="c3unite" type="hidden" value="40,00">
      </div>
  </div></td><td> 
 
        <div align="center">
          <input type="text" name="c3prix" size="6" value="0.00" readonly>
          </div></td></tr>
<tr><td>
 
    <div align="center">
      <input type="text" size="3" name="c4" onChange="calculerPrix(this);">
      </div></td>
  <td class="Style60"><div align="left" class="Style69">
    <div align="center">VN</div>
  </div></td>
  <td class="Style60"><div align="left" class="Style69">
    <div align="center">50 DOSSIERS VN</div>
  </div></td><td>
    <div align="left" class="Style69">
      <div align="center"><span class="Style70">40,00</span>
        <input name="c4unite" type="hidden" value="40,00">
      </div>
    </div></td><td>
 
            <div align="center">
              <input type="text" name="c4prix" size="6" value="0.00" readonly>
            </div></td></tr>
<tr>
  <td>
 
      <div align="center">
        <input type="text" size="3" name="c5" onChange="calculerPrix(this);">
      </div></td>
  <td class="Style60"><div align="left" class="Style69">
    <div align="center">VO</div>
  </div></td>
  <td class="Style60"><div align="left" class="Style69">
    <div align="center">50 DOSSIERS VO</div>
  </div></td>
  <td>
    <div align="left" class="Style69">
      <div align="center"><span class="Style70">40,00</span>
        <input name="c5unite" type="hidden" value="40,00">
      </div>
    </div></td>
  <td>
 
        <div align="center">
          <input type="text" name="c5prix" size="6" value="0.00" readonly>
          </div></td>
</tr>
<tr>
  <td>
 
      <div align="center">
        <input type="text" size="3" name="c6" onChange="calculerPrix(this);">
      </div></td>
  <td class="Style60"><div align="left" class="Style69">
    <div align="center">PC</div>
  </div></td>
  <td class="Style60"><div align="left" class="Style69">
    <div align="center">PACK COMPLET CVN + LVN + REPVO + VN + VO</div>
  </div></td>
  <td>
    <div align="left" class="Style69">
      <div align="center"><span class="Style70">124.00</span>
        <input name="c6unite" type="hidden" value="124.00">
      </div>
    </div></td>
  <td>
 
        <div align="center">
          <input type="text" name="c6prix" size="6" value="0.00" readonly>
          </div></td>
</tr>
<tr>
  <td>&nbsp;</td>
  <td>&nbsp;</td>
  <td>&nbsp;</td>
  <td><div align="center"><span class="Style65">Montant HT</span></div></td>
  <td>
 
        <div align="center">
 
          <input type="hidden" name="port" value="0.00" size="6">
          <input type="text" name="totalHT" value="0.00" size="6" readonly>
 
          </div></td>
</tr>
<tr><td>&nbsp;</td>
  <td>&nbsp;</td>
  <td class="Style66">&nbsp;</td><td class="Style66"><div align="center">T.V.A. 19.6%</div></td><td>
 
          <div align="center">
            <input type="text" name="tva" value="0.00" size="6" readonly> 
            </div></td></tr>
<tr><td>&nbsp;</td>
  <td>&nbsp;</td>
  <td class="Style66">&nbsp;</td><td class="Style66"><div align="left" class="Style66">
    <div align="center"><span class="Style65">Montant TTC</span></div>
  </div></td><td> 
 
        <div align="center">
          <input type="text" name="totalTTC" value="0.00" size="6" readonly>
        </div></td></tr>
</table>
</p>
 
      <p align="center">____________________________________________________________________________________________________</p>
      <p align="center">&nbsp;</p>
      <p class="Style67">Le num&eacute;ro suivant N&deg; CE et date doit appara&icirc;tre sur toute la correspondance annexe, les papiers de livraison et les factures :</p>
      <p class="Style67"> TRANSPORT INCLUS - DELAI LIVRAISON J+10</p>
      <p class="Style67">&nbsp;</p>
      <table width="768" border="0" cellspacing="0">
        <tr>
          <td width="274" class="Style60">Adressez toutes les correspondances &agrave; :</td>
          <td width="490" rowspan="4" class="Style60"><p>&nbsp;</p>
          <p><img src="Suzuki_Alto_2009.jpg" width="455" height="302" align="right"></p></td>
        </tr>
        <tr>
          <td class="Style60"><div align="left"><img src="fiber.jpg" width="131" height="127"></div></td>
        </tr>
        <tr>
          <td class="Style60"><p>&nbsp;</p>
            <p>10, rue Bouvreuils - 91540 MENNECY</p>
            <p>T&eacute;l&eacute;phone : +33(0)1 64 99 84 67</p>
            <p>T&eacute;l&eacute;copie : +33(0)1 64 99 62 30</p>
            <p>&nbsp;</p></td>
        </tr>
        <tr>
          <td class="Style60"><p>CENTRE DE FORMATION :</p>
              <p>39, Rue Paul Claudel - 91000 EVRY</p>
            <p>T&eacute;l&eacute;phone : +33(0)1 60 77 02 00</p>
            <p>T&eacute;l&eacute;copie : +33(0)1 60 77 01 42</p>
            <p>E.mail : <a href="mailto:commande@forma-pro.eu">commande@forma-pro.eu</a></p>
            <p>&nbsp;</p></td>
        </tr>
      </table>
      <p align="center">
        <input name="bouton" value="Envoyer" type="submit">
  </p>
    </form>    </td>
  <td width="2" bgcolor="#FFFFFF"><span class="Style29"></span></td>
  <td bgcolor="#FFFFFF"><span class="Style29"></span></td>
</tr>
</table>
<div align="center"></div>
</center>
</body>
<?
}
if ($com == envoi_mail)
{
		 $nb_faux = 0;
 
$date = $_POST['date'];
$mois = $_POST['mois'];
$annee = $_POST['annee'];
$code_ce = $_POST['code_ce'];
$nom = $_POST['nom'];
$societe = $_POST['societe'];
$adresse = $_POST['adresse'];
$code = $_POST['code'];
$ville = $_POST['ville'];
$tel = $_POST['tel'];
$mail = $_POST['mail'];
$nom2 = $_POST['nom2'];
$societe2 = $_POST['societe2'];
$adresse2 = $_POST['adresse2'];
$code2 = $_POST['code2'];
$ville2 = $_POST['ville2'];
$tel2 = $_POST['tel2'];
$c1 = $_POST['c1'];
$c2 = $_POST['c2'];
$c3 = $_POST['c3'];
$c4 = $_POST['c4'];
$c5 = $_POST['c5'];
$c6 = $_POST['c6'];
$c1prix = $_POST['c1prix'];
$c2prix = $_POST['c2prix'];
$c3prix = $_POST['c3prix'];
$c4prix = $_POST['c4prix'];
$c5prix = $_POST['c5prix'];
$c6prix = $_POST['c6prix'];
$totalHT = $_POST['totalHT'];
$tva = $_POST['tva'];
$totalTTC = $_POST['totalTTC'];
 
if (empty($_POST['date'])  || empty($_POST['mois'])  || empty($_POST['annee'])  || empty($_POST['code_ce'])  || empty($_POST['nom']) || empty($_POST['societe']) || empty($_POST['adresse']) || empty($_POST['code']) || empty($_POST['ville']) || empty($_POST['tel']) || empty($_POST['mail']) || empty($_POST['nom2']) || empty($_POST['societe2']) || empty($_POST['adresse2']) || empty($_POST['code2']) || empty($_POST['ville2']) || empty($_POST['tel2']) || empty($_POST['totalTTC']))
    {           
 
	$nb_faux++;
	}
	    if ($nb_faux == 0) 
		{
 
 
echo '<table width="800" border="1" align="center" cellspacing="0" bgcolor="#FFFFFF">
            <tr>
              <td colspan="3" align="center">R&eacute;capitulatif de commande :</td>
            </tr>
            <tr>
              <td class="Style65">&nbsp;</td>
              <td width="42" rowspan="3">&nbsp;</td>
              <td class="Style65">&nbsp;</td>
            </tr>
            <tr>
              <td width="304" class="Style65">&nbsp;</td>
              <td width="308" class="Style65">&nbsp;</td>
            </tr>
            <tr>
              <td>Date du bon de commande : '.$date.'/'.$mois.'/'.$annee.'</td>
              <td>Code CE : '.$code_ce.'</td>
            </tr>
        </table>

<table width="800" border="1" align="center" cellspacing="0" bgcolor="#FFFFFF">
        <tr>
          <td>Facture &agrave; :</td>
          <td>&nbsp;</td>
          <td>Exp&eacute;dier &agrave; : </td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td width="123">Nom :</td>
          <td width="225">'.$nom.'</td>
          <td width="158">Nom :</td>
          <td width="222">'.$nom2.'</td>
        </tr>
        <tr>
          <td>Soci&eacute;t&eacute; :</td>
          <td>'.$societe.'</td>
          <td>Soci&eacute;t&eacute; :</td>
          <td>'.$societe2.'</td>
        </tr>
        <tr>
          <td>Adresse :</td>
          <td>'.$adresse.'</td>
          <td>Adresse :</td>
          <td>'.$adresse2.'</td>
        </tr>
        <tr>
          <td>Code postale : </td>
          <td>'.$code.'</td>
          <td>Code postale : </td>
          <td>'.$code2.'</td>
        </tr>
        <tr>
          <td>Ville :</td>
          <td>'.$ville.'</td>
          <td>Ville :</td>
          <td>'.$ville2.'</td>
        </tr>
        <tr>
          <td>T&eacute;l&eacute;phone :</td>
          <td>'.$tel.'</td>
          <td>T&eacute;l&eacute;phone :</td>
          <td>'.$tel2.'</td>
         </tr>
		 <tr>
          <td>Mail :</td>
          <td>'.$mail.'</td>
         </tr>
      </table>
      
      <table width="800" align="center" border="1" bgcolor="#FFFFFF">
        <tr>
          <td width="97" height="26"align="center">Quantit&eacute;s</td>
          <td width="90"align="center">R&eacute;f&eacute;rence</td>
          <td width="286" align="center">Description du produit</td>
          <td width="197" align="center">Prix unitaire H.T</td>
          <td width="132" align="center">Montant total H.T.</td>
          </tr>
  <tr>
    <td align="center">'.$c1.'</td>
    <td align="center">CVN</td>
    <td align="center">50 DOSSIERS COMMANDE CVN</td>
    <td align="center">40,00</td>
    <td align="center">'.$c1prix.'</td>
  </tr>
  <tr>
    <td align="center">'.$c2.'</td>
    <td align="center">LVN</td>
    <td align="center">50 DOSSIERS LIVRAISON LVN</td>
    <td align="center">40,00</td>
    <td align="center">'.$c2prix.'</td>
  </tr>
  <tr>
    <td align="center">'.$c3.'</td>
    <td align="center">REPVO</td>
    <td align="center">25 FICHES ESTIMATION REPVO</td>
    <td align="center">40,00</td>
    <td align="center">'.$c3prix.'</td>
  </tr>
  <tr>
    <td align="center">'.$c4.'</td>
    <td align="center">VN</td>
    <td align="center">50 DOSSIERS VN</td>
    <td align="center">40,00</td>
    <td align="center">'.$c4prix.'</td>
  </tr>
  <tr>
    <td align="center">'.$c5.'</td>
    <td align="center">VO</td>
    <td align="center">50 DOSSIERS VO</td>
    <td align="center">40,00</td>
    <td align="center">'.$c5prix.'</td>
  </tr>
  <tr>
    <td align="center">'.$c6.'</td>
    <td align="center">PC</td>
    <td align="center">PACK COMPLET CVN + LVN + REPVO + VN + VO</td>
    <td align="center">124.00</td>
    <td align="center">'.$c6prix.'</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td align="center">Montant HT</td>
    <td align="center">'.$totalHT.'</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td align="center">T.V.A. 19.6%</td>
    <td align="center">'.$tva.'</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td align="center">Montant TTC</td>
    <td align="center">'.$totalTTC.'</td>
  </tr>
</table><br>';
 
//$message = "R&eacute;capitulatif de la commande : <br>Date : $date/$mois/$annee <br> Code CE : $code_ce <br> Nom de la facture : $nom <br> Societe de facturation : $societe <br> Adresse de facturation : $adresse <br> Code postal de facturation : $code <br> Ville de facturation : $ville <br> Téléphone de facturation : $tel <br> Nom de Livraison : $nom2 <br> Societe a livrer : $societe2 <br> Adresse de livraison : $adresse2 <br> Code postal de livraison : $code2 <br> Ville de livraison : $ville2 <br> Tel de livraison : tel2 <br>  Qte 1 : $c1 <br> Qte2 : $c2 <br> Qte3 : $c3 <br> Qte4 : $c4 <br> Qte5 : $c5 <br> Qte6 : $c6 <br> Prix1 : $c1prix <br> prix2 : $c2prix <br> Prix3 : $c3prix <br> Prix4 : $c4prix <br> Prix5 : $c5prix <br> Prix6 : $c6prix <BR> Total H.T. : $totalHT <br> TVA : $tva <br> Total T.T.C. : $totalTTC";
 
$message = '<table width="800" border="1" align="center" cellspacing="0">
            <tr>
              <td colspan="3" align="center">R&eacute;capitulatif de commande :</td>
            </tr>
            <tr>
              <td class="Style65">&nbsp;</td>
              <td width="42" rowspan="3">&nbsp;</td>
              <td class="Style65">&nbsp;</td>
            </tr>
            <tr>
              <td width="304" class="Style65">&nbsp;</td>
              <td width="308" class="Style65">&nbsp;</td>
            </tr>
            <tr>
              <td>Date du bon de commande : '.$date.'/'.$mois.'/'.$annee.'</td>
              <td>Code CE : '.$code_ce.'</td>
            </tr>
        </table>

<table width="800" border="1" align="center" cellspacing="0">
        <tr>
          <td>Facture &agrave; :</td>
          <td>&nbsp;</td>
          <td>Exp&eacute;dier &agrave; : </td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td width="123">Nom :</td>
          <td width="225">'.$nom.'</td>
          <td width="158">Nom :</td>
          <td width="222">'.$nom2.'</td>
        </tr>
        <tr>
          <td>Soci&eacute;t&eacute; :</td>
          <td>'.$societe.'</td>
          <td>Soci&eacute;t&eacute; :</td>
          <td>'.$societe2.'</td>
        </tr>
        <tr>
          <td>Adresse :</td>
          <td>'.$adresse.'</td>
          <td>Adresse :</td>
          <td>'.$adresse2.'</td>
        </tr>
        <tr>
          <td>Code postale : </td>
          <td>'.$code.'</td>
          <td>Code postale : </td>
          <td>'.$code2.'</td>
        </tr>
        <tr>
          <td>Ville :</td>
          <td>'.$ville.'</td>
          <td>Ville :</td>
          <td>'.$ville2.'</td>
        </tr>
        <tr>
          <td>T&eacute;l&eacute;phone :</td>
          <td>'.$tel.'</td>
          <td>T&eacute;l&eacute;phone :</td>
          <td>'.$tel2.'</td>
         </tr>
		   <tr>
          <td>Mail :</td>
          <td>'.$mail.'</td>
         </tr>
      </table>
      
      <table width="800" align="center" border="1">
        <tr>
          <td width="97" height="26"align="center">Quantit&eacute;s</td>
          <td width="90"align="center">R&eacute;f&eacute;rence</td>
          <td width="286" align="center">Description du produit</td>
          <td width="197" align="center">Prix unitaire H.T</td>
          <td width="132" align="center">Montant total H.T.</td>
          </tr>
  <tr>
    <td align="center">'.$c1.'</td>
    <td align="center">CVN</td>
    <td align="center">50 DOSSIERS COMMANDE CVN</td>
    <td align="center">40,00</td>
    <td align="center">'.$c1prix.'</td>
  </tr>
  <tr>
    <td align="center">'.$c2.'</td>
    <td align="center">LVN</td>
    <td align="center">50 DOSSIERS LIVRAISON LVN</td>
    <td align="center">40,00</td>
    <td align="center">'.$c2prix.'</td>
  </tr>
  <tr>
    <td align="center">'.$c3.'</td>
    <td align="center">REPVO</td>
    <td align="center">25 FICHES ESTIMATION REPVO</td>
    <td align="center">40,00</td>
    <td align="center">'.$c3prix.'</td>
  </tr>
  <tr>
    <td align="center">'.$c4.'</td>
    <td align="center">VN</td>
    <td align="center">50 DOSSIERS VN</td>
    <td align="center">40,00</td>
    <td align="center">'.$c4prix.'</td>
  </tr>
  <tr>
    <td align="center">'.$c5.'</td>
    <td align="center">VO</td>
    <td align="center">50 DOSSIERS VO</td>
    <td align="center">40,00</td>
    <td align="center">'.$c5prix.'</td>
  </tr>
  <tr>
    <td align="center">'.$c6.'</td>
    <td align="center">PC</td>
    <td align="center">PACK COMPLET CVN + LVN + REPVO + VN + VO</td>
    <td align="center">124.00</td>
    <td align="center">'.$c6prix.'</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td align="center">Montant HT</td>
    <td align="center">'.$totalHT.'</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td align="center">T.V.A. 19.6%</td>
    <td align="center">'.$tva.'</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td align="center">Montant TTC</td>
    <td align="center">'.$totalTTC.'</td>
  </tr>
</table>';
 
 
 
//$nom=$HTTP_POST_VARS['nom']; 
//$mail=$HTTP_POST_VARS['mail']; 
//$objet=$HTTP_POST_VARS['objet']; 
//$message=$HTTP_POST_VARS['message']; 
 
//voici la version Mine 
$headers = "From:\commande@forma-pro.eu\n"; 
$headers .= "MIME-version:\ 1.0\n"; 
$headers .= "Content-type:\ text/html; charset= iso-8859-1\n"; 
 
$subject="Récapitulatif de commande effectuée en ligne.";
$destinataire="hub@creatitude.fr,commande@forma-pro.eu,gaby@creatitude.fr";
//ENVOI MAIL
 
if (mail($destinataire,$subject,$message,$headers)) 
{ 
 
echo "Votre commande a bien &eacute;t&eacute; prise en compte"; 
 
} else { 
echo "Une erreur s'est produite"; 
	}
		}
			}
?>