TightURL

TightURL Git Source Tree

Root/tighturl-base36.php

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

Archive Download this file

Branches