Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Traiter un formulaire simple en PHP

 formulaire
{filelink=12533}

<html>
<head>
 
</head>
<body>
<div>
<form action="traiter.php" method="get">
<input type="text" name="username" />
 
<textarea name="adresse" rows="5" cols="40">
</textarea>
<input type="submit" value="Envoyer" />
</form>
</div>
 
</body>
</html>
 
----------------------Script de traitement--------------------------
// fichier traiter.php
<html>
<body>
<div>
 <?php
 if(isset($_GET ['username']))
 {
  echo "Bienvenue <b>" . $_GET ['username'] . "</b><br/>";
  print "Votre Adresse: <br/><b>" . $_GET ['Adresse'] . "</b>";
 
  }
  ?>
 </div>
 
</body>
</html>

No comments yet.

Leave a Comment