PHP: Traiter les valuers des champs de texte

Author:

 date
Download

 
<HTML>
<body>
<form method="post" action="form.php">
<table>
<tr>
<td align="right">Nom Complet:</td>
<td>
<input type="text" name="username"></td>
</tr>
<tr>
<td align="right">Adresse:</td>
<td>
<input type="text" name="adresse"></td>
</tr>
<tr>
<td align="right">Pays:</td>
<td>
<input type="text" name="pays"></td>
</tr>
<tr>
<td align="right">Tel:</td>
<td>
<input type="text" name="tel"></td>
</tr>
<tr>
<td align="right">Email:</td>
<td>
<input type="text" name="email"></td>
</tr>
<tr>
<td></td>
<td>
<input type="submit" value="Envoyer"></td>
</tr>
</table>
</form>
 
</body>
</html>
 
<!--    Eregistrer le scripte dans un fichier form.php         -->
-------------------------Script----------------------------------------
<!-- form.php
<html>
<body>
<center><?php echo date("l, f j, y") ?></center>
<hr />
<?php echo $_POST['username'] ?>:
 
 
<?php echo $_POST['tel] ?>    
<?php echo $_POST['pays] ?>  
<?php echo $_POST['email] ?>   
<?php echo $_POST['adresse] ?>    
<?php echo $_POST['username ?>    
 
</body>
</html>
-->

Leave a Reply

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


5 + seven =