hello dears daniweb friend
i'm trying to get total price in php with the below code but i get only the shipping price when i request echo total what is wrong in my code ???
<form name="valide" method="POST" action="<?php echo $editFormAction; ?>">
<label for="Sub total"></label>
<label for="shipping">Sub total</label><input name="subtotal2" type="text" value="<?php echo number_format($row_total['sub_total'], 2, '.', ''); ?>" readonly disabledid="subtotal2">
<label for="shipping">Shipping</label>
<input name="shipping" type="text" id="shipping" value="<?php echo number_format($row_total['shipping'], 2, '.', ''); ?>" readonly>
<label for="total"></label>
<select name="shipping">
<?php $shipping1='20.78';
$shipping2='12.89';
$shipping3='0.00';
$itemprice=number_format ($row_panier['prix'], 2, '.', '');
?>
<?php $totalpay= number_format ($row_panier['prix'], 2, '.', '')+($shipping1);?>
<option value="20.00"><?php echo $shipping1 ?> </option>
<option value="0.00"><?php echo $shipping2 ?> </option>
<option value="12.00"><?php echo $shipping3 ?></option>
</select>
<label for="shipping">Total</label><input name="total" type="text" id="total" value="<?php echo $shipping1+number_format ($row_panier['subtotal'], 2, '.', ''); ?>" readonly>
<input name="total" type="text" value="<?php echo $totalpay; ?>" readonly>