<?
$rad = $_REQUEST[rad];
if ( isset($rad) )
{ $deg = rad2deg($rad); }
else
{ $deg = ""; }
?>
<html>
<body bgcolor="#fad888">
<center>
<form>
<input type="text" name="rad" cols="6" value="<? echo $rad;?>" />
<input type="submit" value="Radians to Degrees">
<input type="text" name="deg" value="<? echo $deg; ?>" cols="6" />
</center>
</form>
</body>
</html>