I'm sure there is a really, really simple way to solve this issue. I'm just not a programmer so I don't know it off the top of my head.

I have this script ext.php that accepts a variable ref.

It works like http://ext.php?ref=http://site.name

The problem is that there is also a '?' in the variable ref that I'm using. Like so:

http://ext.php?ref=http://sitename.asp?id=141

I suspect because there is another '?' in variable ref, ext.php has a problem with it. I cannot change ext.php or sitename.asp.

So my question is, how can I make this work properly via the url? I've tried using %26 for the '?' as well as the & html escape code, but it still doesn't work. Any assistance appreciated.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.