Displaying Logged on User Names
Posted on 2004-08-02
I am creating a small chat room using PHP, MySQL & Dreamweaver. Everything is great apart from one problem that I can't seem to find the answer.
The first page of the site is a login screen, which obviously only allows registered users to enter the chat room. A successfull login moves the user to page 2, which is the Chat Room. I would like to now how to;
Display the users name in a header bar in the chatroom, so that I can add a welcome message.
Autocomplete the username field of the database when the users posts a message. This is to save them having to type in their name every time they post.
Also, how do I refresh the page so that if the users doesn't post a message it still updates when other users post theirs.
Any help would be much appreciated.