sanitation script in php for login credentials...
        Posted  
        
            by Matt
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Matt
        
        
        
        Published on 2010-05-27T06:05:16Z
        Indexed on 
            2010/05/27
            6:11 UTC
        
        
        Read the original article
        Hit count: 347
        
What I am looking for currently is a simple, basic, login credentials sanitation script.
I understand that I make a function to do so and I have one...but all it does right now is strip tags...
am I doomed to use replace? or is there a way i can just remove all special characters and spaces and limit it to only letters and numbers...then as for the password limit it to only letters and numbers exclimation points, periods, and other special chars that cannot affect my SQL query.
Please help :/
Thanks, Matt
© Stack Overflow or respective owner