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