Root/
| 1 | <html> |
| 2 | <head> |
| 3 | <title>TightURL ID converter</title> |
| 4 | </head> |
| 5 | <body> |
| 6 | <?php |
| 7 | if (isset($_POST[id])) |
| 8 | { |
| 9 | echo "<p>TightURLID(Base-36): ".$_POST[id]."<br />DBID(decimal): ".base_convert($_POST[id], 36, 10)."</p>\n"; |
| 10 | } |
| 11 | else |
| 12 | { |
| 13 | ?> |
| 14 | <form method="POST" action="<?php echo $PHP_SELF; ?>"> |
| 15 | id:<input type="text" name="id"> |
| 16 | <input type=submit name="submit" value="Convert ID to decimal"> |
| 17 | </form> |
| 18 | <?php |
| 19 | } |
| 20 | ?> |
| 21 | </body> |
| 22 | </html> |
| 23 |
