Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 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;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement