Page 1 of 1

user signup validation

Posted: Wed Jul 14, 2004 12:07 pm
by pinehead18
I'm looking for a way to create a validatin script so that users on my signup page can't use certain charecters, like the space bar lol.

Any ideas where i can find such a script or start making one?

Posted: Wed Jul 14, 2004 12:31 pm
by lostboy
regex

Code: Select all

if (!ereg("[[]]",$var)){
  echo "only alpha numeric characters allowed";
  show_login_form();
  die();
}