groovygarden
Programmer
- Aug 23, 2001
- 63
Hi, I hope someone can tell me what (hopefully really obvious thing) I'm doing wrong. I have a page results.php which processes results from a form. This is a bit of the code:
Yesterday I was getting the following notice:
which was fair enough because I had error reporting set to E_ALL. But I've changed error reporting to
in php.ini and I'm still getting the notice.... Is there something else I need to do?
Code:
if (!$searchtype || !$searchterm)
{
echo "You have not entered search details. Please go back and try again.";
exit;
}
Code:
Notice: Undefined variable: searchterm
Notice: Undefined variable: searchtype
Code:
error_reporting = E_ALL & ~E_NOTICE