...

View Full Version : special characters



urgido
08-24-2006, 10:21 PM
Hello,

I have a php script is for register users to my site. I want to allow some special characters on the username field(like los, pab|o, ^mary^, etc..) But I'm freak,.

If I allow the special characters on username exists a problem for bugs, problems with mysql or similar?


Regards :)

chump2877
08-25-2006, 01:58 AM
Hello,

I have a php script is for register users to my site. I want to allow some special characters on the username field(like los, pab|o, ^mary^, etc..) But I'm freak,.

If I allow the special characters on username exists a problem for bugs, problems with mysql or similar?


Regards :)

you're a freak? :D

you can allow the special characters as long as you sanitize your data before it is inserted into your database, or into another web file. Use mysql_real_escape_string (http://us3.php.net/manual/en/function.mysql-real-escape-string.php) and htmlentities (http://us3.php.net/manual/en/function.htmlentities.php)to sanitize your data.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum