Secure Login

Hello Again!

I hope you guys can help me out here. I’m still working on my clients site, it’s uploaded and hosted now at <snip />, and they are in need of a secure login form. But I’m kind of stumped with it, I created a nice “twitter style” form for the client but I can’t seem to “use” it.

I’m using wordpress as a CMS if that helps.

Are there any tutorials you could point me to?

I’m pretty decent, but still a newbie, with PHP, I managed to create a file uploader (which is why I we are in need of the secure login). I know I need a ‘users’ database in the phpadmin area, but after that, i’m stumped on how to code it.

Thanks in advance!

FYI - OP reported that he resolved the problem, so I’m going to go ahead and close the thread…

Here is some demo login code I just googled to get you started.

It uses some deprecated php code: session_register.

You should use $_SESSION[‘username’] instead.

Also, don’t forget to sanitise all user inputs from forms using mysql_real_escape_string() otherwise your login code will be vulnerable to sql injection attacks.