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!
Basically I'm trying to devise a way to do a general check of all the form fields that are passed into this function. preg_match() doesn't seem to be working the way it should. Does preg_match return a boolean TRUE or FALSE or what? I've tried /[A-Za-z0-9{x}/ but that doesn't seem to be working the way that it should. Please help me with this thanks.
Last edited by Benjamin on Fri Dec 17, 2010 8:16 pm, edited 1 time in total.
Reason:Added [syntax=php] tags.
I need a general regex that will check all the form fields for letters numbers - @ . and _. If someone will please explain to me how preg_match() works in not so many words it would be greatly appreciated.