PHP: Exemple d’un formulaire qui fait appel à lui même

Author:

 formulaire
Download

<html>
<head>
 
</head>
<body>
 
<?php
if ( ! empty( $_POST['essai'] ) )
{
    print "Votre Offre: ".$_POST['essai'];
}
?>
<form method="post" action="<?php print $_SERVER['PHP_SELF'];?>">
 
 
Votre Offre:
<input type="text" name="essai" />
<input type="submit" name="essayer" />
</form>
 
</body>
</html>

Leave a Reply

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


five + 4 =