error with if statement
<p>hi im using a script to include scripts based in $_GET but im getting a erorr </p>

<pre><code>&lt;?php
$config = array(
'videos' =&gt; 'dynapage/scripts/videos.php',
'testbed' =&gt; 'dynapage/scripts/testbed.php'
);

if(isset($config[$_GET['page']])) {
     include($config[$_GET['page']]);
}
else {
include("home.php");
}
?&gt;
</code></pre>

<p>im getting the following error</p>

<pre><code>Notice: Undefined index: page in D:\webdesign\webserver\root\dynapage\scripts\pagecheck.php on line 7
</code></pre>

<p>any help much apreciated</p>
