At a guess, you are trying to access a $POST or $GET element that was not part of the post/get data when the page was called. Check the spelling (including case) of the index being used. If the page can conceivably be called with that data element not supplied (an technically that's always possible, possibly intentionally), then you need to test for its existence and assign a default value if it's not there (or follow some other logic such as displaying an error to the user).
if(isset($_GET['foo']))
{
$foo = $_GET['foo'];
}
else
{
$foo = 'some default value';
}
A handy shortcut for this is the "ternary" operator:
$foo = (isset($_GET['foo'])) ? $_GET['foo'] : 'default value';