示例#1
0
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="refresh" content="2, URL=../index.php">
        <title>Connexion</title>
    </head>
    <body>

    <h2>vous n'avez pas remplis tout les champs du formulaire!</h2>

    </body>
    </html>
    <?php 
} else {
    if (isset($login) && isset($password)) {
        $connexionCheckLogin = new CheckInsert($login);
        $connexionCheckpassword = new CheckInsert($password);
        if ($connexionCheckLogin->check() === 0 || $connexionCheckpassword->check() === 0) {
            ?>
        <!doctype html>
        <html lang="fr">
        <head>
            <meta http-equiv="refresh" content="2; URL=../index.php">
            <meta charset="UTF-8">
            <title>Document</title>
        </head>
        <body>

        <h2>Veuillez entrer des identifiants valides!</h2>

        </body>
        </html>
    <!doctype html>
    <html lang="fr">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="refresh" content="2, URL=premiereConnexion.php">
        <title>Cangement mot de passe.</title>
    </head>
    <body>

        <h2>Les passwords sont differents!</h2>

    </body>
    </html>
<?php 
} else {
    $changePasswordCheck = new CheckInsert($password1);
    if ($changePasswordCheck->check() === 0) {
        ?>
        <!doctype html>
        <html lang="fr">
        <head>
            <meta charset="UTF-8">
            <meta http-equiv="refresh" content="2, URL=../premiereConnexion.php">
            <title>Cangement mot de passe.</title>
        </head>
        <body>

        <h2>Veuillez entrer un password valide!</h2>

        </body>
        </html>