Re: [PHP] check for special characters...
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...
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.