Problem using Javascript to redirect to a URL with a query string
<h3>Javascript</h3>

<pre><code>&lt;script type="text/javascript"&gt;
function Edit(id)
{
    if(confirm("Are you sure to edit?")==true)
    {
        location.href='employee_set.php&amp;edit='+id;
    }
}
&lt;/script&gt;
</code></pre>

<h3>PHP</h3>

<pre><code>&lt;?php
if(isset($_GET["edit"])==false) {
    echo "no response";
} else {
    echo "link success";
}
?&gt;
</code></pre>

<p>My problem is the Javascript is OK. The location href example. <a href="http://localhost/employee_set.php&amp;edit=30" rel="nofollow">http://localhost/employee_set.php&amp;edit=30</a> ...</p>

<p>The PHP code is not working. Error is not found.</p>
