PHP redirect problems. Adds Ampersand to my &

5 replies
I created a php redirect script to cloak some of my links on my website. Visitors are clicking on the cloaking link,
"www.domain-name.com/category/downloadname" and then it calls my PHP redirect script to go to the actual link.

Here is the PHP script example:

<?
header("Location: http://domain.com/download/downloadpop.aspx?shortname=downloadname&a=12528745 &f=downloadname&productsubid=2048");
?>

Somehow, when the PHP script is called, the 'amp;' is added to every '&' and then the link no longer works.

How can I fix this so that the 'amp;' won't be added to every '&' in the PHP script?

Any help is greatly appreciated!!
#adds #adds ampersand #ampersand #php #problems #redirect

Trending Topics