mirror of
https://github.com/Chouchen/shorturl.git
synced 2018-06-07 06:34:38 +02:00
Creation of the world.
This commit is contained in:
18
index.php
Normal file
18
index.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?
|
||||
session_start();
|
||||
include 'class/ShortURL.php';
|
||||
|
||||
$url = new ShortURL();
|
||||
|
||||
?>
|
||||
<form action="short.php" method="post">
|
||||
<label for="url">URL : </label><input type="text" name="url" />
|
||||
<label for="shortName">Raccourci : </label><input type="text" name="shortName" />
|
||||
<input type="submit" value="Envoyer">
|
||||
</form>
|
||||
|
||||
<?
|
||||
if(isset($_SESSION['msg'])){
|
||||
echo $_SESSION['msg'];
|
||||
unset($_SESSION['msg']);
|
||||
}
|
Reference in New Issue
Block a user