Voila j'ai le message suivant lorsque je clique sur le bouton valider. Si cela marcherai en faite ça devrai afficher:
si le produit =0 alors ça devrai afficher ma page avec mes différentes informations.
voici mon code:
Merci pour votre aide.
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 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> </head> <body> <form method="POST" action="Feuille_Lot_EWS.php"> <table width="30%" border=3 cellspacing=6 cellpadding=4> <tr> <td>Choisissez un lot: <select onchange="document.menulot.submit();"> <option>Choisissez un lot</option> <option>1</option> </select> </td> </tr> <tr> <td>Produit: <input name="Produit" type="text" size="15"> </td> </tr> <tr> <td>Nombre de plaquette: <input name="plaquette" type="text" size="5"> </td> </tr> <tr> <td> <input name="bt_valider_etiquette" type="submit" size="5" value="Valider"> </td> </tr> </table> </form> <?php if (!empty($_POST["bt_valider_etiquette"])) { if (!isset($_POST['produit'])) { $produit=$_POST['produit']; } { // Instructions si $_POST['truc'] existe } if ($produit=="0") { ?> <table width="100%" border=3 cellspacing=6 cellpadding=4> <tr> <td colspan=2 width=50>Réservé TPP:<input name="Reserve_TPP" type="text" size="%"></td> </tr> <tr> <td>Selectionner le prober choisi <select name="menuprober" id="menuprober"> <option>pro</option> </select> </td> </tr> </table> <br> <table width="50%" border=3 cellspacing=3 cellpadding=4> <tr> <td width="5%">Plaque</td> <td width="10%">GOODS</td> </tr> <tr> <td><input name="Plaque" type="text" size="5" ></td> <td><input name="Goods" type="text" size="5" ></td> </tr> </table> <?php } } ?> </body> </html>
Je reste à votre disposition pour plus d'informations
Partager