Embedding Javascript in PHP With Brackets
<p>Alright so I've been trying to echo some JavaScript for the fancybox window to popup if a user logs in or out. This is what I have so far, but it keeps throwing a server error.</p>

<pre><code>&lt;link rel="stylesheet" type="text/css" href="scripts/fancybox/jquery.fancybox.css" /&gt;
&lt;script type="text/javascript" src="scripts/fancybox/jquery.fancybox.js"&gt;&lt;/script&gt;
&lt;?php
$msg = $_GET['msg'];
if(isset($msg['0']));  {
echo '
&lt;script type="text/javascript"&gt;
$.fancybox.open([
{
    href : \'m.php?=0\',
    title : \'Successfully Logged In!\'
}    
], {
padding : 0   
});
&lt;/script&gt;';
}
else if (isset($msg['1'])); {
echo '
&lt;script type="text/javascript"&gt;
$.fancybox.open([
{
    href : \'m.php?=1\',
    title : \'Successfully Logged Out!\'
}    
], {
padding : 0   
});
&lt;/script&gt;';
}
?&gt;
</code></pre>

<p>What am I doing wrong?</p>
