Andrus Posted May 25, 2006 Share Posted May 25, 2006 hey i need something to restrict alot of funny chars in the usernameright now i got this // check the username for bad chars if(!eregi("[A-Z]",$username)){ echo '<script language="Javascript">alert ("Bad characters in username")</script>'; include("index.html"); exit(); }but it still allows weird looking characters like Ũ and stuff, how do i restrict it to only A-Z and a-z Quote Link to comment https://forums.phpfreaks.com/topic/10466-need-stric-regex-for-form/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.