I have a guest book , and I want to make sure that those people who sign the
guest book can't impersonate a member of the web site. the code below
checks the input string, which is the guestbook signer's name, against a
list of defined web site members. Is there any way to circumvent the code
as
But hey, who doesn't have em eh? Anyway, here's my predicament. I want to
look for either the string "http://"; or for 1 or more spaces in a string.
Here's the regex I've got
preg_match("/http:\/\/ | [[:space:]]/i",$valToEval);
I can get each test case working individually, but as soon as I c
Now I'm looking to find 1 or more digits in an input:
preg_match("[[:digit:]]",$valToEval);
I'm passing the value "12" and this thing still returns 0. What's going on?
Carl
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
3 matches
Mail list logo