Re: Question on explode and join.
| From: | Google Kreme | Date: | Fri, 15 Sep 2006 07:46:37 +0000 |
| Subject: | Re: Question on explode and join. | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-241810@lists.php.net to get a copy of this message | ||
On 13 Sep 2006, at 11:02 , Dave Goodchild wrote:
$_SESSION['profane'] = false; foreach ($_POST as $value) {wouldn't that trigger on "assassination"<1> is "ass" was in $swearbox? <1> twice -- Do not meddle in the affairs of Dragons for you are crunchy and taste good with ketchupforeach ($swearbox as $profanity) { if (preg_match("/$profanity/i", $value)) { $errors = true; $_SESSION['profane'] = true; mail(TECHEMAIL, 'profane content attack attempt on DJST', "From: {$_SERVER['REMOTE_ADDRESS']} Time: " . date('d F Y G:i:s', time()-TIMEDIFF),'whoops@dontjustsitthere.co.uk');} }}