I have already set default values for the input field “$minprice” I would also like to have it where if a user changes that value when the form is submited that it keeps the value that the user submitted than reverting back to my default values. Any Suggestions. Thanks in advance.
[php]
<?php foreach($arkvalues as $key => $var) { if ($total < 1) { $var = floor($var*$total); } $gross = floor($var*$refine); $fee = floor($gross*$taxed); $net = floor($gross-$fee); if ($key == $mega) { $minprice = "13"; $totalcost1 = ($minprice*$net); $subtotal = number_format($totalcost1); } if ($key == $trit) { $minprice = "2"; $totalcost2 = ($minprice*$net); $subtotal = number_format($totalcost2); } if ($key == $zyd) { $minprice = "3605"; $totalcost3 = ($minprice*$net); $subtotal = number_format($totalcost3); } $input = ""; $mineral = number_format($var); $grossrefine = number_format($gross); $stationfee = number_format($fee); $netend = number_format($net); $totalcost = ($totalcost1 + $totalcost2 + $totalcost3); echo "[/php]