Print Page | Close Window

Respond.Redirect Problem

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=1379
Printed Date: 29 March 2026 at 2:53pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Respond.Redirect Problem
Posted By: IDArcher
Subject: Respond.Redirect Problem
Date Posted: 26 March 2003 at 2:24pm

Hello All,

I am trying to uset the Respond.Redirect method to redirect a person to another website once I have checked a few things from a prior form.  The redirect URL is being changed for some reason.  The statement is:

respond.redirect " https://www.paypal.com/xclick/business=cmn....... - https://www.paypal.com/xclick/business=cmn....... "

When I run the code and the browser is redirected the URL in the address area of the browser looks somthing like this

https://www.paypal.com/xclick/business%3udcmn - https://www.paypal.com/xclick/business%3udcmn ......

its as if the = is being replaced for some reason... Any help would greatly appreciated.




Replies:
Posted By: MorningZ
Date Posted: 26 March 2003 at 2:30pm
you cannot use "Response.Redirect" for an external URL, it'll only point to files on the webserver itself

-------------
Contribute to the working anarchy we fondly call the Internet


Posted By: michael
Date Posted: 26 March 2003 at 2:45pm
Sorry MorningZ but you can use Redirects to external URL's no prob (Maybe you confused it with includes). the = is transformed well doesen't do it when i try, did you try to do an url encode on the url??


Posted By: IDArcher
Date Posted: 26 March 2003 at 5:52pm

Sorry for my lack of knowledge, but what is a url encode? Here is the full URL that I am trying to redirect to:

https://www.paypal.com/xclick/business=cmn%........ - https://www.paypal.com/xclick/business=cmn%........

If you just copy this URL into the Address line of the browser it works just fine or click on it above... but after the redirect gets done with it it looks like this

https://www.paypal.com/xclick/business%3Dcmn%.......2540idahoarchery.com&item_name%3DMirkwood+Elven+Bow+Raffle&amount%3D1&return%3Dhttp%253A//www.idahoarchery.com/cmn/donation_thank_you.htm&cancel_return%3Dhttp%253A//www.idahoarchery.com/cmn/raffle.asp&no_note%3D1&tax%3D0&currency_code%3DUSD - https://www.paypal.com/xclick/business%3Dcmn%.......

I tried using a Server.urlEnclode("url") but got even worse results... I really need some help with since I am getting short on time to make this work.  Please HELP!



Posted By: MorningZ
Date Posted: 27 March 2003 at 6:29am
Originally posted by michael michael wrote:

Sorry MorningZ but you can use Redirects to external URL's no prob (Maybe you confused it with includes). the = is transformed well doesen't do it when i try, did you try to do an url encode on the url??

oops... i had "Server.Transfer" in my head (use this ALL the time at work)... my bad for bad info

-------------
Contribute to the working anarchy we fondly call the Internet


Posted By: IDArcher
Date Posted: 27 March 2003 at 1:14pm
Thanks for your help guys, I figured it out for some reason I had to put a ? before business.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net