salut a tous aidez moi stp je pense bien écrire ce code mais il me renvoie une erreur.
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 <form id="form1" name="form1" method="post" action="paiement.php"> <span class="Style8">VEILLEZ CHOISIR VOTRE MODE DE PAIEMENT</span> <label for="label"><br /> <br /> </label> <p> <select name="paie" id="label"> <option value="3" <?php if ($_POST['paie']== 3) echo "SELECTED" ; ?>>ORANGE MONEY</option> <option value="2"<?php if ($_POST['paie']== 2) echo "SELECTED" ; ?>>MTN MOBILE MONEY</option> <option value="4"<?php if ($_POST['paie']== 4) echo "SELECTED" ; ?>>FLOOZ</option> <option value="1"<?php if ($_POST['paie']== 1) echo "SELECTED" ; ?>>LES CARTES BANCAIRES</option> </select> <label for="Submit"></label> <input type="submit" name="val" value="valider" id="val" /> </p> <p> </p> <?php if ($choix== 1 && $cb=="valider" ) { ?> <table width="296" border="1"> <tr> <td width="138">VOTRE NOM </td> <td width="142"><?php echo $dat['nom_cli']; ?></td> </tr> <tr> <td>VOTRE PRENOM </td> <td><?php echo $dat['prenom_cli']; ?></td> </tr> <tr> <td>VOTRE EMAIL </td> <td><?php echo $dat['e_mail_cli']; ?></td> </tr> <tr> <td><span class="Style8">VOTRE NUMERO DE CARTE</span> </td> <td><label for="textfield"></label> <input type="text" name="cb" id="cb" /></td> </tr> <tr> <td height="23"><a href="facture.php"> <label for="Submit"></label> <input type="submit" name="facture1" value="AFFICHER LA FACTURE" id="facture1" /> </a></td> </tr> </table> <?php } elseif ($choix==2 or $choix==3 or $choix==4 && $cb=="valider" ) {?> <table width="296" border="1"> <tr> <td width="138">VOTRE NOM </td> <td width="142"><?php echo $dat['nom_cli']; ?></td> </tr> <tr> <td>VOTRE PRENOM </td> <td><?php echo $dat['prenom_cli']; ?></td> </tr> <tr> <td>VOTRE EMAIL </td> <td><?php echo $dat['e_mail_cli']; ?></td> </tr> <tr> <td><span class="Style8">VOTRE NUMERO DE TELEPHONNE</span> </td> <td><label for="textfield"></label> <input type="text" name="cb" id="textfield" /></td> </tr> <tr> <td height="23"><a href="facture.php"> <label for="Submit"></label> <input type="submit" name="facture" value="AFFICHER VOTRE FACTURE" id="facture" /> </a></td> </tr> </table> <?php }?> </form> <?php if ($rien==1) echo "<font color=\"red\" size=\"4\">votre numero de téléphonne SVP </font>" ; elseif ($rien==2) echo "<font color=\"red\" size=\"4\">votre numero de carte bancaire SVP </font>" ;?>
Partager