Created
May 27, 2017 08:15
-
-
Save vporoshok/0dec9fc2c04ab7c28512b4dc68b58742 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| session_start(); | |
| if ($_SERVER['REQUEST_METHOD'] === 'POST') { | |
| $_SESSION['email'] = $_POST['email']; | |
| header('Location: /form.php'); | |
| exit(); | |
| } | |
| ?> | |
| <form method="post"> | |
| <input name="email"> | |
| <button>Login</button> | |
| </form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment