I have a problem on my webpage with an querystring I have to pass inside a querystring.
The main querystring is a cookie checker. And inside this I need to pass a second URL that contain also a querystring with &. The second querystring is now broken after website is parsed:
http://www.myurl.com/check_affiliate_cookie_exist.jsp?contractId=3241248&referrer=*&foundString=linkok¬FoundString=https%3A%2F%2Fwww.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=WZ7CHZVKKLNQW"
When I now click on the second link, it is broken at & and the second part of this "sub querystring" is broken.
Any idea how to deal with this?
urlencode()to encode characters like&to be passed in the url. Then callurldecode()to retrieve the original url.