-
-
Save simplyniceweb/ac6194ad7ba5bcbf13e0fd0993191ffa 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
// save post values to a variable | |
$username = $_POST["username"]; | |
$password = $_POST["password"]; | |
// create array | |
$userdata = [ | |
"username" => $username, | |
"password" => $password | |
]; | |
// save the array to session | |
$_SESSION["user"] = $userdata; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment