cuisine/vues/vConnexion.php
Timothée Huneau 4c71fb59b4 Initial commit
Création de tous les dossiers et fichiers avec mise à part des constantes
2023-04-11 19:11:26 +02:00

20 lines
No EOL
588 B
PHP

<section id='principal'>
<?php switch($typePage): ?>
<?php case 0 ?>
<form method="POST" action="index.php?page=connexion">
<input type="password" required name="motdepasse"/>
<input type="submit">
</form>
<?php break; ?>
<?php case 1 ?>
<p>Vous êtes connecté.e !</p>
<form method="POST" action="index.php?page=connexion">
<input type="submit" value="Se déconnecter ?" name="deconnexion">
</form>
<?php break; ?>
<?php case -1 ?>
<p>Echec de la connexion ... Vous pouvez <a href="index.php?page=connexion">rééssayer</a>.</p>
<?php break; ?>
<?php endswitch ?>
</section>