<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>Conversion</title></head><body><?phpif(!$_POST["value"] || !$_POST["unit"] || !$_POST["converted_unit"]){echo "Something was undefined!";die;}$txt=$_POST["value"];$unit=$_POST["unit"];$convert=$_POST["converted_unit"];$total=$txt*$unit;$final=$total/$convert;if ( $unit == 1000 ){ if ( $txt >= 1 ) { $total; $final; echo $final . " Kilo -units"; } else echo "you int must be more then or equal to one";}else if ( $unit == 1 ) { if ( $txt >= 1 ) { $total; $final; echo $final . " what ever you chose to conver it too! -units"; } else echo "PHAIL, your unit was not = to one"; } else echo "im woking on it, sheesh";?></body></html>