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

Verifier si le champ requis a été saisi


{filelink=12539}

<?php
 
if (!strlen($_POST['nom']))
{
   print 'Le chmaps nom est obligatoire.';
}
?>
 
 <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 = "submit">
   </form>
 
  </body>
 
</html>

No comments yet.

Leave a Comment