- <?php
- session_start();
- if ($_SERVER['REQUEST_METHOD'] != 'POST') {
- header('Location: signin.php');
- exit();
- }
- if (!isset($_POST['login'], $_POST['password'])) {
- header('Location: signin.php');
- exit();
- }
- $login = htmlspecialchars($_POST['login']);
- $passwd = htmlspecialchars($_POST['password']);
|