View Single Post
  #2 (permalink)  
Old August 5th, 2012, 06:42 AM
abeera_000 abeera_000 is offline
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2012
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi :

replace your code with :

<?php
$answer='';
if (isset($_POST['FtoC'])){
$answer=convertFtoC((float) $_POST['temperature']);
} elseif (isset($_POST['CtoF'])) {
$answer=convertCtoF((float) $_POST['temperature']);
}
?>

cheers
Reply With Quote
The Following User Says Thank You to abeera_000 For This Useful Post:
MRGLENN (September 13th, 2012)