Re: Verify a string

From: Date: Tue, 15 Apr 2003 19:47:55 +0000
Subject: Re: Verify a string
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-144003@lists.php.net to get a copy of this message
*This message was transferred with a trial version of CommuniGate(tm) Pro* assuming $string is the string to contain SELECT if(strstr($string,'SELECT')) { echo "It containts SELECT!"; } else { echo "It doesn't contain SELECT! :( "; }; Rolf Brusletto rolf@phpExamples.net PHP/MySQL Coder Security Admin http://www.phpExamples.net ----- Original Message ----- From: "shaun" <shaun@mania.plus.com> To: <php-general@lists.php.net> Sent: Tuesday, April 15, 2003 11:45 AM Subject: [PHP] Verify a string > *This message was transferred with a trial version of CommuniGate(tm) Pro* > Hi, > > How can i verify that text sent from a text area begins with SELECT? > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#144003) next »