2012-04-17 17:39:09
0
i am writing a unit converter php program. i have the set up of the page, but it seems like my php file is not being found. when i click the submit button i am brought a an error page. this is my html code.
Convert length:
Select conversion direction:
checked="checked"/> Feet to meters
Meters to feet
/>
Value to be converted:
name="cvalue" />
and here is my php file
$fTOm = $_POST["cvalue"] * 3.2808;
$mTOf = $_POST["cvalue"] / 3.2808;
echo "Result: ";
if ($POST[ 'dir'] == "1") <?php echo "$_POST["cvalue"]; ?> feet = <?php echo "fTOm"; ?> meters;
?>