Download
<?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> |
<?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>