I get this undefined index notice when I access the page where to choose the category in which to post a classified ad in my script.
Error is in the first line of the snippet. I have tried to surround the $_GET['postevent'] with an isset(), it makes the notice disappear, but then script doesn't work properly. There must be another solution.
elseif (($_GET['subcatid'] || $_GET['postevent']) && $xcityid > 0)
// Show the form //
if($_GET['subcatid'] == -1)
$_GET['postevent'] = $_REQUEST['postevent'] = 1;