PHP: Créer et traiter un formulaire HTML simple

Author:

 formulaire
Download

--------- Le formulaire HTML---------------------
<form method="POST" action="index.php">
Tapez votre nom
<input type="text" name="nom">
<br/>
<input type="submit" value="Envoyer">
</form>
 
--------------Script PHP------------------------------
 
//index.php
<?php
print "Bienvenu, ";
// Afficher l''information tapée dans le formulaire
print $_POST['nom'];
echo "!";
?>

Leave a Reply

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


+ 7 = ten