Jump to content

How should I be filtering/validating user inputted username/password...


cgm225

Recommended Posts

How should I be filtering/validating user inputted username and passwords?  Restated, before I even check to see if the provided username and password are ones I have in my database, how should I be checking their input (for mysql injections, etc.).

 

Should I be using the filter_var() function?  If so, with what setting?  Or should be be using a regex?  If so, again, what setting.

 

Thank you all in advance!

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.