vendredi 29 janvier 2016

php limite chek box

Hello I need a little help . How to limit these checkbox with php

So is this, but now follows a code block:

if($check_item_ok[8] == '0') { // 0 for Weapons Pendants
            if($item_exc >= '1') {echo'
                            <div class="opt_title">Increases Mana After monster +Mana/8</div>
                            <div class="opt"><input id="ex1" onclick="checkall();" ame="boxes" value="1" type="checkbox"></div>
            ';};
            if($item_exc >= '2') { echo'
                            <div class="opt_title">Increases Life After monster +Life/8</div>
                            <div class="opt"><input id="ex2" onclick="checkall();" ame="boxes" value="2" type="checkbox"></div>
            ';};
            if($item_exc >= '3') { echo'
                            <div class="opt_title">Increase attacking(wizardly)speed+7</div>
                            <div class="opt"><input id="ex3" onclick="checkall();" ame="boxes" value="3" type="checkbox"></div>
            ';};
            if($item_exc >= '4') { echo'
                            <div class="opt_title">Increase Damage +2%</div>
                            <div class="opt"><input id="ex4" onclick="checkall();" ame="boxes" value="4" type="checkbox"></div>
            ';};
            if($item_exc >= '5') { echo'
                            <div class="opt_title">Increase Damage +level/20</div>
                            <div class="opt"><input id="ex5" onclick="checkall();" ame="boxes" value="5" type="checkbox"></div>
            ';};
            if($item_exc >= '6') { echo'
                            <div class="opt_title">Excellent Damage Rate +10%</div>
                            <div class="opt"><input id="ex6" onclick="checkall();" ame="boxes" value="6" type="checkbox"></div>
            ';};




Aucun commentaire:

Enregistrer un commentaire