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

Quote:
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.

*shudders*
atriq is offline   Reply With Quote