Re: [PHP] Searching a string or similar

2001-12-28 Thread Bogdan Stancescu
if (strpos(SCRIPT LANGUAGE = Javascript,$input_string)===false) { echo(Yeah, right!); exit; } You'll have a lot of problems, though, because 1. You also need to check for script type=text/javascript; 2. You have to strtolower() both strings in order to eliminate capitalization differences;

RE: [PHP] Searching a string or similar

2001-12-28 Thread David Piasecki
This should be a better alternative: http://www.php.net/manual/en/function.strip-tags.php -Original Message- From: Bogdan Stancescu [mailto:[EMAIL PROTECTED]] Sent: Friday, December 28, 2001 11:14 AM To: Ash Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Searching a string or similar