i am trying to show that a user is/isn't logged on. here is what i have thus far:

loginsuccess.php:
PHP Code:
<?php
$myusername 
$_GET['$myusername'];
setcookie('myusername',$myusername,time() + (86400 7)); // 86400 = 1 day
?>
index.html:
PHP Code:
<?php
echo 'Hello '.($_COOKIE['$myusername']!='' $_COOKIE['$myusername'] : 'Guest');
?>