Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
XP is just a number
 
PerlMonks  

Re: Trying to redirect...

by LD2 (Curate)
on Mar 17, 2001 at 09:17 UTC ( [id://65136]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Trying to redirect...

You may want to look at this node: CGI and redirect.. I believe it will most likely answer your question. If not, please be more specific (i.e. post your code?).

Replies are listed 'Best First'.
Re: Re: Trying to redirect...
by Anonymous Monk on Mar 17, 2001 at 09:27 UTC

    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

      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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://65136]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.