Login   Register  
PHP Classes
elePHPant
Icontem

File: createUrl.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Igor Herson Aquino de França  >  Url short URL dynamic  >  createUrl.php  >  Download  
File: createUrl.php
Role: Example script
Content type: text/plain
Description: Create URL e data base
Class: Url short URL dynamic
Create and redirect URL shortcuts
Author: By
Last change:
Date: 2008-09-18 09:29
Size: 519 bytes
 

Contents

Class file image Download
<?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>