CakePHP Undefined index when looking for query string
<p>I get an error saying <code>'Undefined index: redirect'</code> </p>

<p>with this code:</p>

<pre><code>        $came_from_site = $_GET['redirect'];
        if($came_from_site != "true")
        {
            echo 'USER TYPED IN URL MANUALLY';
        }
</code></pre>

<p>The error happens when the query string doesn't exist.... So I guess I need to check if a) it exists and then if it does b) check that it's value is true</p>

<p>Can anyone help?</p>

<p>Thanks</p>
