Great man, it works nicely. I added a couple of if's and such to test a couple of different inputs that the user could do.
Yet, I am missing one and I'm not sure exactly how I would go about doing it.
Say, the user inputs the username Brian and that doesn't exist in the database, right now it just refreshs itself and does nothing (because I havent told it to do anything) but I want my script to check and if the username is not in existance (right now I only have 1 in my DB) that it will refresh itself and display a message, similar to if the password is wrong.
I believe that is the last thing I need to cover for my script to be pretty solid.
Check it out. Pretty much complete:
http://http://www.joystickadventures.com/logintest/login.phpusername: matt
password: 123
So, I just need to check the DB to see if the username is there, if its not then display an error message. I'm sure it's easy and I'm just overlooking how to do it.
Thanks man.
Tell me any other suggestions you may have from the link which has my script in working order.
EDIT: oh yeah, how does one display my viewposts.php page in oldest last fashion. I think it is DESC or something but I can't remember.