This is an item in my store. Each item can be purchased with five different options. Currently, the user can buy an item with all the possibilities and I want to limit his choice to two out of five. Please give suggestions on how to sink this and can I use php
or I need to use JavaScript
.
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>
';};