Advertisement
Guest User

Untitled

a guest
Nov 15th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Prenoult
  5. * Date: 15/11/2016
  6. * Time: 13:18
  7. */
  8.  
  9. // Verification des champs du formulaire
  10. if (empty($_POST['id']) || empty($_POST['password']) || empty($_POST['passwordConf']) || empty($_POST['email'])) {
  11. echo "Veuillez renseigner tout les champs";
  12. } else {
  13. if (strlen($_POST['id']) >= 4) {
  14. $id = $_POST['id'];
  15. } else echo "Votre identifiant doit contenir au moins 4 caractères";
  16. if (strlen($_POST['password']) >=8){
  17. $password = $_POST['password'];
  18. } else echo "Votre mot de passe doit contenir au moins 8 caractères";
  19. $passwordConf = $_POST['passwordConf'];
  20. $email = $_POST['email'];
  21.  
  22. }
  23.  
  24. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement