user signup validation

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
pinehead18
Forum Contributor
Posts: 329
Joined: Thu Jul 31, 2003 9:20 pm

user signup validation

Post 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?
lostboy
Forum Contributor
Posts: 329
Joined: Mon Dec 30, 2002 8:12 pm
Location: toronto,canada

Post by lostboy »

regex

Code: Select all

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