I've been following this tutorial: http://www.phpeasyst...opview.php?id=6
and have kind of managed to create a simple logging in function to my website.
But, when I try to log in and include the code:
if(!session_is_registered(myusername)){
header("location:index.php?user_ID=$user_ID");
}I get the following error messages, and the page doesnt display anything apart from the errors:
Notice: Use of undefined constant myusername - assumed 'myusername' in C:\wamp\www\new_portfolio\login_success.php on line 11
Deprecated: Function session_is_registered() is deprecated in C:\wamp\www\new_portfolio\login_success.php on line 11
How can I fix this?
Thanks for any help.
Help

















