Bonjour,
Voici mon souci, donc une boutique avec un prix normal ($prix)et un prix vip ($prix2)
Lorsque $prix est atteind : la case commander se grise, seulement elle ne se grise pas quand $prix2 est atteind !!
Pourquoi ?
Je pense qu'il faut rajouter $prix2 mais je ne sais comment ??
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 <? echo $prix; ?> pts<br> <span style="color: rgb(51, 204, 0);">VIP Niv. 3 : </span><? echo $prix2; ?> pts<br><br> Stock : <? echo $dispo; ?><br> <br> <font color="#000000"><strong> <form action='commande/boutique_1.php' method='post'><input type="submit" value=<?php if ($points<$prix) { echo"Commander"; } else { if($dispo=="0") { echo "Rupture";} else { echo"Commander"; } }?> <?php if($dispo=="0" OR $points<$prix){ echo "disabled"; } ?>><input name='id' type='hidden' value='<? echo $id; ?>'></form></strong></font></td> <td align="justify" bgcolor="#808080"><? echo $description; ?> </td> </tr> </tbody> </table>
Partager