good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Oops! (Query String messed up)by Chady (Priest) |
on Mar 12, 2001 at 13:07 UTC ( [id://63782]=perlquestion: print w/replies, xml ) | Need Help?? |
Chady has asked for the wisdom of the Perl Monks concerning the following question: I'm working on a new navigation system for my website, kinda like the one here (but not so smart). so all my links look something like : index.pl?location=SomePage&referer=MainPage now to control things, all outside links are specified like that (for logging): index.pl?location=Redirect&URL=http://www.somewhere.com/&referer=Links The problem occured when I wanted to link to a page with a query like http://www.somewhere.com/page.cgi?id=something&type=html, so the link was like : index.pl?location=Redirect&URL=http://www.somewhere.com/page.cgi?id=something&type=html&referer=Links You get the idea the URL query gets messed up, is there a way to get around this? or should I substitute the ampersands "&" with some other character, and then s/// them when redirecting? any thoughts??Chady | http://chady.net/
Back to
Seekers of Perl Wisdom
|
|