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