Passing Url In Variable That Contains Values With '&' sign
<p>I Want to pass Url inside one variable, this variable contains url with values.<br>
for example:<br></p>

<pre><code>$addr = "http://".$_SERVER['SERVER_NAME']."/".$_SERVER['REQUEST_URI']."";
echo $addr;
</code></pre>

<p>this step will give me <code>http://localhost/index.php?page=3&amp;var1=A&amp;var2=B</code>
<br>When i passing this $addr var to another page, and echo it, i get only <code>`http://localhost/index.php?page=3</code>
<br> its look like when there is &amp; sign its gone.
what should i do? there is way to pass this variable and echo the whole var?<br>
thanks.</p>
