Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Created by PhpStorm.
- * User: Prenoult
- * Date: 15/11/2016
- * Time: 13:18
- */
- // Verification des champs du formulaire
- if (empty($_POST['id']) || empty($_POST['password']) || empty($_POST['passwordConf']) || empty($_POST['email'])) {
- echo "Veuillez renseigner tout les champs";
- } else {
- if (strlen($_POST['id']) >= 4) {
- $id = $_POST['id'];
- } else echo "Votre identifiant doit contenir au moins 4 caractères";
- if (strlen($_POST['password']) >=8){
- $password = $_POST['password'];
- } else echo "Votre mot de passe doit contenir au moins 8 caractères";
- $passwordConf = $_POST['passwordConf'];
- $email = $_POST['email'];
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement