formulaire pour remplir des ticket de panne
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
737 B

<?php
$login = [['prof', 'arthur'], ['referant', 'azerty']];
echo $login[0][0];
if (isset($_POST['login']) && isset($_POST['pwd'])) {
if ($login[0][0] == $_POST['login'] && $login[0][1] == $_POST['pwd']) {
session_start();
$_SESSION['login'] = $_POST['login'];
$_SESSION['pwd'] = $_POST['pwd'];
header('location: prof/index.php');
}
elseif ($login[1][0] == $_POST['login'] && $login[1][1] == $_POST['pwd']) {
session_start();
$_SESSION['login'] = $_POST['login'];
$_SESSION['pwd'] = $_POST['pwd'];
header('location: prof/index.php');
}
else {
echo '<meta http-equiv="refresh" content="0;URL=index.php">';
}
}
else {
echo 'c vide';
}
?>