RE: proper method to do the following...

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

 



Hugh Beaumont wrote:
> the following code outputs :
>
> Notice: Undefined index: exact in search.php on line 10
>
> code :
>
> if (!isset($_POST['exact'])) {   <--------- line 10
>   $_POST['exact'] == false;
> }

You have a typo in line 11.  I'm assuming you want to use the assignment operator
"=" instead of the equality operator "==".  The PHP parser seems to be incorrectly
attributing the error to line 10 when it should be on line 11.  If you change "=="
to "=" your error will go away.  It took me a moment to catch it because of the
misleading error message.

HTH

-- 
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