If you are interested in how to make a login system in PHP and MYSQl with sessions view the article here: http://theiblog.com/2005/11/13/making-php-login-system-in-php-and-mysql-with-sessions/
It's not really a good login system because you assume that things will be done for you. You also mix old session logic with new session logic... this... (old way) $myuserid = $row['ID']; session_register('myuserid'); PHP: is not same as this... (new way) $_SESSION['myuserid'] = $row['ID']; PHP: As a standard rule mixing them is bad because they don't do the same thing, if register_globals is OFF your code will fail, because * myuserid * will never be registered! Your assuming something which is bad logic! My second example will work with register_globals is ON or OFF, and has been the new standard of assigning a session for a few years now! Now I am not try to discredit you, all I am saying is that giving advise on a subject matter that you seem to have limited knowledge about can be dangerous for others that have less knowledge than you have. There is also other logic problems to. Sorry if you think I am being rude, but that was not my intention, all I am saying is that writing a technical article is not like writing a key word article about some subject that may interest you. A technical article must in it's self use sound logic, which in this case means, the author should know what they are doing and use good coding standards and if you do something that is considered sub-standard than explain why you did it! jb
I used this coding for many sites and sites have used this coding for this sites not one complaint yet.