Pass & as part of value in url in javascript
<p>I have one URL like:</p>

<pre><code>&lt;ul&gt;
&lt;?php
$sql = "select * from product";
$res = mysql_query($sql);
while($row = mysql_fetch_array($res))
{
?&gt;
   &lt;li&gt; &lt;a href="test.php?id=&lt;?php $row['name']?&gt;"&gt;&lt;?php $row['name']?&gt;&lt;/a&gt;&lt;/li&gt;
&lt;?php
}
?&gt;
&lt;/ul&gt;
</code></pre>

<p>when here $row['name'] has "Tea &amp; Coffee" then PHP Side:</p>

<pre><code>$id = $_GET['id'];
</code></pre>

<p>Value of <code>$id</code> is <strong>"Tea"</strong> but I need whole string as <strong>"Tea &amp; Coffee"</strong>.</p>
