Re: how to pass double quotes in a url from CGI script
- From: yitzle@xxxxxxxxxxxxxxxxxxxxx (Yitzle)
- Date: Thu, 29 Mar 2007 22:22:49 -0400
$url = "http://...=\"1406746\"";
print '<META HTTP-EQUIV="refresh" content="1;URL=$url">';
Plugging in the variable gives:
<META HTTP-EQUIV="refresh" content="1;URL=http://...=\"1406746\"">'
Should there be a " after the URL=?
That may be screwing it up.
You also probably want to call a function (don't of its name) to convert the
"s into the proper HTTP encoded format. (%22 ?)
On 3/29/07, Ravi Malghan <rmalghan@xxxxxxxxx> wrote:
Hi: I am having trouble passing double quotes when passing a url string.
Everything after the double quotes does not go through. For example in the
perl script below, the browser ends up going to
http://appserver/arsys/forms/rearsp01/HPD%3AHelp+Desk/Default+User+View/?&qual='TRS%20Ticket%20Number'=
--------SCRIPT----------
$url = "
http://appserver/arsys/forms/rearsp01/HPD%3AHelp+Desk/Default+User+View/?&qual='TRS%20Ticket%20Number'=\
"1406746\"";
<HTML>
<HEAD>
<TITLE>Redirect to my Trouble Ticket</TITLE>
</HEAD>
$url = "
http://appserver/arsys/forms/rearsp01/HPD%3AHelp+Desk/Default+User+View/?&qual='TRS%20Ticket%20Number'=\
"1406746\"";
print '<META HTTP-EQUIV="refresh" content="1;URL=$url">';
</HTML>
-----------------------------------
How do I pass double quotes so the browser goes to
http://appserver/arsys/forms/rearsp01/HPD%3AHelp+Desk/Default+User+View/?&qual='TRS%20Ticket%20Number'="1406746"
?
Thanks
Ravi
____________________________________________________________________________________
Now that's room service! Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097
--
To unsubscribe, e-mail: beginners-unsubscribe@xxxxxxxx
For additional commands, e-mail: beginners-help@xxxxxxxx
http://learn.perl.org/
--
- Yitzchok Good
- References:
- how to pass double quotes in a url from CGI script
- From: Ravi Malghan
- how to pass double quotes in a url from CGI script
- Prev by Date: how to pass double quotes in a url from CGI script
- Next by Date: Re: perl
- Previous by thread: how to pass double quotes in a url from CGI script
- Next by thread: Re: how to pass double quotes in a url from CGI script
- Index(es):
Relevant Pages
|