<?
$oct = $_REQUEST[oct];
if ( isset($oct) )
{ $dec = octdec($oct); }
else
{ $dec = ""; }
?>
<html>
<body bgcolor="#fad888">
<center>
<form>
<input type="text" name="oct" cols="6" value="<? echo $oct;?>" />
<input type="submit" value="Octal to Decimal">
<input type="text" name="dec" value="<? echo $dec; ?>" cols="6" />
</center>
</form>
</body>
</html>