Jump to content


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


need stric regex for form

Recommended Posts

hey i need something to restrict alot of funny chars in the username

right now i got this

// check the username for bad chars
echo '<script language="Javascript">alert ("Bad characters in username")</script>';

but it still allows weird looking characters like Ũ and stuff, how do i restrict it to only A-Z and a-z

Share this post

Link to post
Share on other sites


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.