Download
<?php
if(isset($_GET['username']))
{
print "Bienvenu <b>$username</b><br/>";
print "Votre Adresse:<b>$adresse</b>";
}
else
{
?>
<html>
<head>
</head>
<body>
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="GET">
<input type="text" name="username">
<textarea name="adresse" rows="5" cols="40">
</textarea>
<input type="submit" value="Cliquez ici">
</form>
</body>
</html>
<?php
}
?> |
<?php
if(isset($_GET['username']))
{
print "Bienvenu <b>$username</b><br/>";
print "Votre Adresse:<b>$adresse</b>";
}
else
{
?>
<html>
<head>
</head>
<body>
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="GET">
<input type="text" name="username">
<textarea name="adresse" rows="5" cols="40">
</textarea>
<input type="submit" value="Cliquez ici">
</form>
</body>
</html>
<?php
}
?>