Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>Formulaires</title>
- </head>
- <body>
- <form action="traitement.php" method="post">
- <p>Saisir nom : <input type="text" name="nom" /></p>
- <p>Saisir votre mot de passe : <input type="text" name="password" /></p>
- <p><input type="submit" value="Soumettre"></p>
- </form>
- </body>
- </html>
- <html>
- <head>
- <title>Formulaires</title>
- </head>
- <body>
- <?php
- if ($_POST['password']=="mot")
- {
- print("Bienvenue ".$_POST['nom']." sur le site , votre mot de passe est correct.");
- }else{
- print("Bienvenue ".$_POST['nom']." sur le site , votre mot de passe est incorrect.");
- }
- ?>
- <form name="x" action="formulaire.php" method="post">
- <p><input type="submit" value="retour"><p>
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement