Hi guys have a bit of a bommer here can any on help please??
<?php
if (isset($_POST['BMEC'])){
$tot = 0; // clear vairable
$BMTot = 0; // clear vairable
$tot = $tot + ($_POST['BMEC']); //gets value from user input
$BMTot = $tot; //Assign value to variable
$BMTot = $BMTot * 2; // multiply varaible with 2
$tot = $tot + ($_POST['BMCEO']);
$tot = $tot + ($_POST['BMCOO']);
$tot = $tot + ($_POST['BMCFO']);
$tot = $tot + ($_POST['BME']);
$tot = $tot + ($_POST['BMNE']);
$sectionBMT_result = $tot;
$sectionBMT2_result = $BMTot; // NOW here is the problem if you echo this if gives me a result of two which is correct cause my input was 1. the problem lies when i display result in another text box it does not show ???
echo $$sectionBMT2_result; } ?>">
}
?>
<input name="BMEC2" type="text" id="BMEC2" size="6" value="<?PHP if ($sectionBMT2_result){ // this field is not in my code here