Hi Tobias,
@ 7:20:00 PM on 4/15/2001, Tobias Talltorp wrote:
> I think you want regular expressions...
> Try this on for size:
> $str = "http://www.yahoo.com/somedir/somepage.html";
> if (preg_match("/www.yahoo.com/i", $str)) {
> print "Your submission cannot be accepted";
> } else {
> print "You are good";
> }
...
I doubt there is a need to use regular expressions just to find out of
a string has yahoo.com in it.
-Brian
--
PGP is spoken here: 0xE4D0C7C8
Please, DO NOT carbon copy me on list replies.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]