I have a referral script that is not working.
The script is suppose to refer a url, which has a "&" in it.
When the script is used, it refers everything behind the URL, but the & and the remaining URL is lost.
Is there something I need to change to this part of this script to accommidate the url string to work when sent?
This is what it shows in emails:
http://www.website.com/category.cgi?Show_Item
This is what it should show:
http://www.website.com/category.cgi?Show_Item&1064588705
<script language="JavaScript">
queryVar = this.location.href;
document.write("<a href=http://www.website.com/refer/index.php?url=" + queryVar + ">Click here to send this page to someone!</a>");</script>
Thank you for your help.