php help

elliott1

New Member
Messages
31
Reaction score
0
Points
0
i have got this script :
<?php
if (!isset($_COOKIE['loggedin'])) die("You are not logged in!<br><a href=login.html>log in</a>");
$mysite_username = $HTTP_COOKIE_VARS["mysite_username"];
echo "you are logged in as $mysite_username.<p>";

but when the user is logged in it only says "you are logged in as." i dont no what to replace the $mysite_username with

any help

thanks !
 

Fedlerner

Former Adm & Team Manager
Community Support
Messages
12,934
Reaction score
6
Points
38
*Moved to "Site Management"* as it isn't for support related to your hosting account.
 

flinx

New Member
Messages
68
Reaction score
0
Points
0
Does the cookie contain mysite_username? Do you set it in the login script?
 
Top