DID My Home Work Can You Please Check.
Posted: Fri Aug 29, 2008 7:32 pm
Ok Im doing a registration form validation for the username. I only want a-z, A-Z, 0-9, dashs and underscores. Any advise or changes are welcome.
Here it goes.
elseif(!preg_match('/^[-\w]*$/', $username) ) $err=$lang['err_signup17'];
I also searched all over the web for making this work with international characters if I want the site to be in other languages could not find anything can any way help with that please. Does \w apply to all international characters?
Here it goes.
elseif(!preg_match('/^[-\w]*$/', $username) ) $err=$lang['err_signup17'];
I also searched all over the web for making this work with international characters if I want the site to be in other languages could not find anything can any way help with that please. Does \w apply to all international characters?