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.

20 lines
460 B

<?php
$good_login = 'prof';
$good_pwd = 'arthur';
if (isset($_POST['login']) && isset($_POST['pwd'])) {
if ($good_login == $_POST['login'] && $good_pwd == $_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';
}
?>