View Single Post
Old 05-23-07, 12:27 PM   #12
Registered User
atriq's Avatar
Join Date: May 2007
Posts: 34
Default Re: Need a non-functional PHP login box

Originally Posted by evilghost
I know this is an older thread but I wanted to comment on the t3hl33td4rg0n's excellent example. All is fine, however, it is is strongly recommended that you use the mysql_escape_string(); function to properly sanitize user-input to avoid SQL injection.
Beat me to it; I actually got a bit of a nervous feeling in my stomach seeing an unsanitized, anonymously set variable going directly to a database.

atriq is offline   Reply With Quote