Filltering
Collapse
X
-
to prevent mysql injection use: mysql_real_escape_string
PHP: mysql_real_escape_string - Manual
Leave a comment:
-
I want to remove any special characters from username, password to help prevent mysql injection as for the email I need to allow the @ symbol
Leave a comment:
-
you can try something like this:
PHP Code:$text = preg_replace('/[^[:alnum:]\-\.\_\^]/', '', $text);
Leave a comment:
Leave a comment: