I have two files. name.php and index.php
In name.php, I have the following script:
$HTTP_COOKIE_VARS[user_login];
$pieces = explode(".", $user_login);
$first_name = $pieces[0];
echo "Hello! ";
print(ucfirst("$first_name"));
This script takes info from a cookie and displays the person's name on the page.
If I open my web browser to name.php, the script works perfectly. On index.php, I include name.php The problem is, on index.php, everything from name.php shows up except for $first_name, which is derived from the cookie.
Does anyone know why this happens and is there a way to make it work?