Skip to content

Instantly share code, notes, and snippets.

@vporoshok
Created May 27, 2017 08:15
Show Gist options
  • Select an option

  • Save vporoshok/0dec9fc2c04ab7c28512b4dc68b58742 to your computer and use it in GitHub Desktop.

Select an option

Save vporoshok/0dec9fc2c04ab7c28512b4dc68b58742 to your computer and use it in GitHub Desktop.
<?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