Aphp73 Posted November 16, 2006 Share Posted November 16, 2006 I'm trying to make a Magic 8-Ball PHP page and I need to save the login name(I have a login page that takes the person to the 8-ball page). I basically need to save the users name, I am thinking the Session_register variable might do it, but I'm not sure how it works. session_start();if (isset($_SESSION['run']))//save sessions to page{ $run = $_SESSION['run']; if (isset($_POST['name'])) { $firstname = $_POST['name']; session_register('$firstname'); } This is what I've started with to pull the name off the form and save it too the server. I don't know how to call it in the body though. Thanks in advance for any help.Aphp73 Link to comment https://forums.phpfreaks.com/topic/27415-help-with-the-session_register-variable/ Share on other sites More sharing options...
tomfmason Posted November 16, 2006 Share Posted November 16, 2006 You don't have to use session_register..Just use[code=php:0] $_SESSION['firstname'] = $firstname;[/code]Good Luck,Tom Link to comment https://forums.phpfreaks.com/topic/27415-help-with-the-session_register-variable/#findComment-125398 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.