|
Subject:
|
Querystrings butchered
|
|
Posted By:
|
abq23
|
Post Date:
|
4/5/2006 1:40:42 PM
|
Thanks in advance to anyone who can help.
When we link to another site, our company requires a gateway disclaimer for any visitor leaving our site -- something to the effect of, "You understand you're leaving, we're not responsible for any of the stuff on this other site, blah, blah, blah..."
Up until now, things have been simple enough. The code was written like this:
<a href="leavesite.asp?link=http://www.anothersite.com">Disclaimer page</a>
Easy enough. But lately, the links that we've had to provide to Other Site have included complex URLs with long querystrings, and the disclaimer page is chopping up the querystring. This link:
<a href="leavesite.asp?link=http://www.wherever.com/index.asp?color=red&tree=maple&car=ferrari">link</a>
...returns this:
http://www.wherever.com/index.asp?color=red
What am I overlooking, and how do I fix it?
_______________________________________________________________
Confidence is what you feel when you do not truly understand the situation.
|
|
Reply By:
|
mat41
|
Reply Date:
|
4/5/2006 6:31:09 PM
|
You have two ? in your QS remove the second one, it should look like:
<a href="leavesite.asp?link=http://www.wherever.com/index.asp&color=red&tree=maple&car=ferrari">link</a>
Wind is your friend Matt
|
|
Reply By:
|
joelchaconf
|
Reply Date:
|
4/7/2006 8:22:25 AM
|
Matt,
The 1st ? is the start of his QS and the second one is part of the complex link that abq23 is talking about; so the problem remains...
May I humbly suggest:
Store the complex link in the Session Object, like so:
Session("Outside_Link")=strLink
And once inside leaversite.asp; pick it up:
strL = Session("Outside_Link")
Let us know how you finally solve this one!... quite an interesting situation. Cheers, Joel
|