pb undefined variable error

This commit is contained in:
Dupard 2021-09-09 01:19:29 +02:00
parent 20055cc57e
commit 78f8376033
2 changed files with 4 additions and 4 deletions

View File

@ -35,9 +35,9 @@
?> ?>
<form method="POST"> <form method="POST">
<label for="login">Login</label> <label for="login">Login</label>
<input type="text" id="login" name="login" placeholder="Votre identifiant" required value="<?php if($error) echo $_POST['login'] ?>" /> <input type="text" id="login" name="login" placeholder="Votre identifiant" required value="<?php if(isset($error)) echo $_POST['login'] ?>" />
<label for="passwd">Mot de passe</label> <label for="passwd">Mot de passe</label>
<input type="passwd" id="passwd" name="passwd" placeholder="Votre mot de passe" minlength="6" required value="<?php if($error) echo $_POST['passwd'] ?>" /> <input type="passwd" id="passwd" name="passwd" placeholder="Votre mot de passe" minlength="6" required value="<?php if(isset($error)) echo $_POST['passwd'] ?>" />
<input type="hidden" name="auth" value="true" /> <input type="hidden" name="auth" value="true" />
<input type="submit" value="valider"> <input type="submit" value="valider">
</form> </form>

View File

@ -22,9 +22,9 @@
?> ?>
<form method="POST"> <form method="POST">
<label for="mail">mail</label> <label for="mail">mail</label>
<input type="email" id="mail" name="mail" placeholder="Votre identifiant" required value="<?php if($error) echo $_POST['mail'] ?>"/> <input type="email" id="mail" name="mail" placeholder="Votre identifiant" required value="<?php if(isset($error)) echo $_POST['mail'] ?>"/>
<label for="passwd">Mot de passe</label> <label for="passwd">Mot de passe</label>
<input type="passwd" id="passwd" name="passwd" placeholder="Votre mot de passe" minlength="6" required value="<?php if($error) echo $_POST['passwd'] ?>" /> <input type="passwd" id="passwd" name="passwd" placeholder="Votre mot de passe" minlength="6" required value="<?php if(isset($error)) echo $_POST['passwd'] ?>" />
<label for="conf_passwd">Confirmer votre mot de passe</label> <label for="conf_passwd">Confirmer votre mot de passe</label>
<input type="passwd" id="conf_passwd" name="conf_passwd" placeholder="Confirmation du mot de passe" minlength="6" required /> <input type="passwd" id="conf_passwd" name="conf_passwd" placeholder="Confirmation du mot de passe" minlength="6" required />
<input type="hidden" name="register" value="true" /> <input type="hidden" name="register" value="true" />