in reply to Re: Trying to redirect...
in thread Trying to redirect...

Yeah, i tried that alredy..

here's the code where the problem is (assume all varibles exist, i have checked they do.)
if ($query->param('loc') eq '2') { print $query->redirect("$productDL2") }else{ print $query->redirect("$productDL1") }

Also, i dont print anything before this, and i seem to be getting redirected back to the cgi (when i access it, IE pops up a little "the attempt to load 'accessing URL: http://mycgi'slocation' failed" error

2001-03-17 Edit by Corion: Added formatting and <CODE> tags

Replies are listed 'Best First'.
Re: Re: Re: Trying to redirect...
by LD2 (Curate) on Mar 17, 2001 at 14:41 UTC
    I don't think you quite read that last node..you may want to try what jjhorner suggested. I believe that comatose explains it, "Redirect is for telling a browser that the site it was looking for has moved. Location is for redirects as most people think of them.".. you need to use location and not redirect.