- Code: Select all
<?php
session_name("PassTech");
session_start();
$System = $_SESSION['System'];
echo $System;
?>
which is ignored.
I have this embedded in the html code:
- Code: Select all
<?php
$System = $_SESSION['System'];
echo $_SESSION['System'];
echo $_SESSION['FirstName'];
echo $_SESSION['LastName'];
?>
This returns nothing
No matter what I've tried, I can't get this code to work. It seems like the code is completely overlooked. I know that the passing variable is working, because I have tested it. Also, the session is carried over to the next page and works there.
More info: I have this code in the sending php file:
- Code: Select all
$file=fopen("lookupsplash.php","r");
echo file_get_contents("lookupsplash.php");
fclose($file);
when reading "lookupsplash.php", file_get_contents starts reading at the body tag of lookupsplash.php.
I have also tried
- Code: Select all
echo readfile("lookupsplash.php");
What gives?
tim