Location: PHPKode > scripts > MiniUrl short URL dynamic > miniurl-short-url-dynamic/createUrl.php
<?php
require('miniUrl.php');
$tinyurl = new miniUrl();

if(isset($_POST['send'])){
   $tinyurl->create($_POST['destiny']);
?>
<p align="center"></p>Your Mini Adress: <a href="<?php echo $tinyurl->showAdress(); ?>"><?php echo $tinyurl->showAdress(); ?></a></p><br /><br />
<? } ?>
<form name="adress" action="<?php $_SERVER['PHP_SELF']?>" method="POST">
Adress: <input name="destiny" size="50" />
<input type="submit" name="Submit" value="Submit" />
<input type="hidden" name="send" value="send" />
</form>
Return current item: MiniUrl short URL dynamic