Gestion basic d’un formulaire PHP

Author:

 formulaire
Download

<?php
if(isset($_POST['nom']))
      echo 'Bienvenu, <b/>' . $_POST['nom'] . '!';
?>
 
 <html>
 
 <head>
 
 </head>
 
 <body>
<form action ="<?php echo $_SERVER['PHP_SELF']; ?>" method = "post">
 
  Tapez votre nom complet:
<input type = "text" name = "nom">
<input type = "submit" value = "Envoyer">
  </form>
 
 </body>
 
</html>

Leave a Reply

Your email address will not be published. Required fields are marked *


four + 2 =