dagon wrote:your posting your db credentials to a public forum
Not any more 🙂
drwhi wrote:hi i know that there are lots of things on here about logins but i dont under stand them i am currently using this code and people say that it is not safe so i was woundering if you can tell me where im going ronge?
You're mixing $_SESSION and session_register(). session_register() would only work if register_globals is turned on. Having register_globals turned on is a bad thing.
You should exit(); after using header("Location:");
On a live site you should not die(mysql_error()). You should provide a proper error page that doesn't reveal details of the inner workings of your database.
You misspell "don't", "understand", "wondering", "I'm", "wrong", and "I" four times 🙂