line of error appears when passing a message in php
<p>i been working in the login code .. it works fine except this message that appears when openenig the login page !!</p>

<pre><code>Notice: Undefined index: msg in C:\xampp\htdocs\thesite\login.php on line 103
</code></pre>

<p>it has appeard when i typed this  in loginExcution.php</p>

<pre><code>    else {
        //Login failed
        header("location:login.php? msg=*invalid name or password");
        exit();
    }
</code></pre>

<p>and  this to show the message in the login form page </p>

<pre><code>&lt;?php
$msg = $_GET['msg'];
print $msg;
?&gt;
</code></pre>
