Re: [PHP] check for special characters...

2004-03-26 Thread John W. Holmes
Chris Mach wrote: How would I check if a variable has special characters in it like [EMAIL PROTECTED] etc ? and give an error if it contains one of them. if(preg_match('/[^a-z0-9]/i',$value)) { echo "special characters present!"; } -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3B

[PHP] check for special characters...

2004-03-26 Thread Chris Mach
How would I check if a variable has special characters in it like [EMAIL PROTECTED] etc ? and give an error if it contains one of them.