Re: Form Data Filtering

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



kvigor wrote:
if (in_array(strtolower($value), $profanity))
{
     $profanity[$field] = "bad";
}

on php.net I haven't seen any example on using strtolower w/ arrays.

I tried this an I get the following output:

Please REMOVE the profanity in the following fields. Immediately!
Notice: Undefined offset: 0 in C:\htdocs\Sweepstakes\sosValidate.php on line 114


Notice: Undefined offset: 1 in C:\htdocs\Sweepstakes\sosValidate.php on line 114


Notice: Undefined offset: 2 in C:\htdocs\Sweepstakes\sosValidate.php on line 114


Notice: Undefined offset: 3 in C:\htdocs\Sweepstakes\sosValidate.php on line 114 ...etc.

I also tried (in_array(strtolower($_POST[$value]), $profanity)) same result.

Which line is 114? I'm betting it's not the in_array line.

-Stut

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux