philo23 Posted May 3, 2006 Share Posted May 3, 2006 i need to:[b]check my users registering username[/b]also[b]check to see if this string, '../' is found[/b]any ideas. i'd like my usernames to contain only "_A-Z a-z 0-1" only thanks in advance Quote Link to comment Share on other sites More sharing options...
zq29 Posted May 7, 2006 Share Posted May 7, 2006 This should work [code]if(!eregi("[a-z0-1_]",$username)) echo "Invalid";[/code] [a href=\"http://www.regularexpressions.info/\" target=\"_blank\"]Click here for a good regular expressions information source.[/a] Quote Link to comment 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.