Jump to content

Help with the Session_register variable


Aphp73

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.