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