How to get rid of hundreds of PHP undefined index notices?
<p>I just enabled error reporting and wow what a shocker I have probably thousands if not hundreds of notices like this</p>

<p>Notice: Undefined index: action in C:\webserver\htdocs\header.inc.php on line 18</p>

<p>I understand that they are because I am calling a variable withoutsetting it or whatever but is there an easiar way to set for example if a page has 50 variables that it is reporting this , is there an easiar way to code that page properly to fix them all?</p>

<p>And I don't mean to just hide them I think it would be best to fix them</p>

<p>here is an example of that line I posted</p>

<pre><code>if ($_GET['p'] == "account.edit.topfriends" || $_GET['action'] == "newmember" || $_GET['p'] == "account.profile.name") {
    //some more code here
}
</code></pre>
