Hi Guys,
I'm modifying the Product Pages 'Product URL' input so that I can pass a user onto another website with some client variables. I have no need for it's normal use as is, so it makes sense I use it for something useful to me.
I have this string that doesn't quite work. I'm using www.example.com for link example.
This returns:Code:$products_url = $product_info->fields['products_url'].'&userid='.$_SESSION['customer_id'];
http://www.example.com%26userid%3D1
So the & = are being encoded incorrectly.
I'm trying to achieve a link like this:
www.example.com&userid=1 - My Customer ID being '1'
Does anybody know of the correct way to encode this? Possibly with an example piece of code?
Thanks


Reply With Quote
