This basic script is in a folder off of the root called campaigns. The sponsorLookup.php is a file on the root. The print statement for SponsorFirstName is failing while the fakeSponsor print statement works fine. The only difference between the two included files is that one is on the root and the other is in the campaigns folder. When you want to reference a file that is up one level, you put a / in front of it, right? I've even tried using the full path ( and that doesn't work either.


PHP Code:
include 'startSession.php';
$_SESSION[sponsorID] = 121;


print (
"<p>SponsorFirstName is $_SESSION[sponsorFirstName]</p>");
print (
"<p>fakeSponsor is $fakeSponsor");