jos nesto... ovaj kod mi po default-u kada izaberem neki proizvod racuna cenu za porez 10%, e sada, mene zanim sta treba da dodam ili promenim da bi mi, kada u drop-down meniju izaberem neki drugi procenat, racunao cenu za taj procenat?
Code:
<td class="main_text"><input name="hardware_pricesell_add" type="text" id="hardware_pricesell_add" size="15" maxlength="15" value="<?php if (!$pricesell_now) {$pricesell_now=$price2*1.1;}echo number_format($pricesell_now,2); ?>">
<select name="select2">
<option value="<?php $pricesell3=$price2*1.03; echo number_format($pricesell3,2); ?>"><?php echo ("3% "); echo number_format($pricesell3,2); ?></option>
<option value="<?php $pricesell5=$price2*1.05; echo number_format($pricesell5,2); ?>"><?php echo ("5% "); echo number_format($pricesell5,2); ?></option>
<option value="<?php $pricesell6=$price2*1.06; echo number_format($pricesell6,2); ?>"><?php echo ("6% "); echo number_format($pricesell6,2); ?></option>
<option value="<?php $pricesell8=$price2*1.08; echo number_format($pricesell8,2); ?>"><?php echo ("8% "); echo number_format($pricesell8,2); ?></option>
<option selected value="<?php $pricesell10=$price2*1.10; echo number_format($pricesell10,2); ?>"><?php echo ("10% "); echo number_format($pricesell10,2); ?></option>
<option value="<?php $pricesell15=$price2*1.15; echo number_format($pricesell15,2); ?>"><?php echo ("15% "); echo number_format($pricesell15,2); ?></option>
</select></td>