I wrote a login system, and you can't post a message there if you are not logged in. The messages look like parts of an email header.
In my form I use this
<input type="hidden" name="auteur" value="<? echo $_SESSION['username']; ?>">
and then I use this check method to see if the user was logged in
When there is a $_SESSION['username'], it means you are logged in. When you are not logged in or the login failed, it deletes the session variables.
Anyone who can help?