hello friends
i have 3 variable in form option and it content diferent price of shipping and i have varile price of product, and and other variable who is the total, i would like when user choose shipping of his choice that the total change my code is below
<?php $shipping1='20.78';
$shipping2='12.89';
$shipping3='0.00';
?>
<?php $totalpay= ($row_total['sub_total'])+($shipping1);?>
<option name="express" value="20.00"><?php echo $shipping1 ?> </option>
<option name="free" value="0.00"><?php echo $shipping2 ?> </option>
<option name="zunaphone" value="12.00"><?php echo $shipping3 ?></option>
</select><br>
<label for="shipping">Total</label>
<input name="total" type="text" value="<?php echo number_format ($totalpay, 2, '.',''); ?>" readonly>