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