Passing & in query string
<p>I want to pass '&amp;' operator in query string. I tried to use urlencode and urldecode 
but its not working. I am doing this:</p>

<pre><code>$abc="A &amp; B";
$abc2=urlencode($abc);
</code></pre>

<p>Then I am passing the value like this</p>

<pre><code>&lt;a href="hello.php?say=&lt;?php echo $abc2 ?&gt;"&gt;&lt;?php echo $abc;?&gt;&lt;/a&gt;
</code></pre>

<p>and getting value on next page as</p>

<pre><code>$abc=$_GET['say'];
$abcd=urldecode($abc');
echo $abcd;
</code></pre>

<p>but the output is not <code>A &amp; B</code></p>

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