PDA

Click to See Complete Forum and Search --> : redirecting using a querystring


charliecatney
Nov 7th, 2000, 05:05 AM
Say I am using a querystring to redirect from a stats page. eg.

http://www.whatever.com/redirect.asp?url=http://www.whatever.com/page.asp?a=one&b=two

Part of the redirect url is lost (b=two) ie. any querystring of the redirect url that follows an "&".

Can some one tell me how to prevent this happening. Any help would be a great help.

Charlie

asabi
Nov 7th, 2000, 05:50 PM
try something like:

<a href="http://whatever.com/index.asp?<%=server.urlencode ("url=http://www.whatever.com/page.asp?a=one&b=two
")%>">

Not sure if it would help ... but worth a try :-)

da_silvy
Nov 11th, 2000, 10:07 PM
that happens because the server thinks that &b=two
is part of the query string being sent to the redirect.asp
document

try this:

<%
url = Request("url")
endofurl = request("b")
response.write url & "&b=" & endofurl
%>