Gossamer Forum
Home : General : Perl Programming :

Escaped problem

Quote Reply
Escaped problem
Hi,

In a cgi script, I have this:

print $IN->redirect(-location=>qq~save?go=main&msg=item removed~,
-cookie=>$cookie);

The problem is it outputs the url as:

http://www.mysite.com/cgi/saved%3Fgo%3Dmain%26msg%3Ditem%20removed

with the %3Fgo%3Dmain%26msg%3Ditem%20removed messing up the url.

I think I would just need the ? and & character not to be escaped. How would I do this?

--------------------------------
Privacy Software

Last edited by:

BLOOD: Jan 23, 2006, 12:38 PM
Quote Reply
Re: [BLOOD] Escaped problem In reply to
Hi,

To use -url instead of -location should work

print $IN->redirect(-url=>qq~save?go=main&msg=item removed~,
-cookie=>$cookie);

Cheers,



Cheers,

Dat

Programming and creating plugins and templates
Blog
Quote Reply
Re: [tandat] Escaped problem In reply to
Fantastic - thanks very much tandat !

--------------------------------
Privacy Software