<html>
<head>
<title>TightURL ID converter</title>
</head>
<body>
<?php
if (isset($_POST[id]))
{
  echo 
"<p>TightURLID(Base-36): ".$_POST[id]."<br />DBID(decimal): ".base_convert($_POST[id], 3610)."</p>\n";
}
else
{
?>
  <form method="POST" action="<?php echo $PHP_SELF?>">
  id:<input type="text" name="id">
  <input type=submit name="submit" value="Convert ID to decimal">
  </form>
<?php
}
?>
</body>
</html>