Pls advise, what is wrong with the PHP script:
<html>
<head>
<title>Calorie Calculation</title>
</head>
<body>
<?php
$calorie = ($_POST["fat"] * 9) / ($_POST["calories"] * 100);
?>
Welcome, $_POST["foodname"] contains: <?php echo $calorie ."from fat" ;
echo "<br />";
{
if ($calorie > 30)
echo ($_POST["foodname"]) 'contains $calorie % from fat <br />';
echo ($_POST["foodname"]) 'exceeds the AHA recommendation';
else
echo ($_POST["foodname"]) 'contains" $calorie "% from fat <br />';
echo ($_POST["foodname"]) 'is within the AHA recommendation of 30% calories from fat';
}
?>
</body>
</html>
Thanks,
Tony