RE: [PHP] $_GET and multiple spaces.
- From: agrobinet@xxxxxxxxxxxxx (Andrés Robinet)
- Date: Mon, 14 Jan 2008 16:33:04 -0300
-----Original Message-----
From: Richard Lynch [mailto:ceo@xxxxxxxxx]
Sent: Monday, January 14, 2008 2:11 PM
To: Jochem Maas
Cc: clive; Churchill, Craig; php-general@xxxxxxxxxxxxx
Subject: Re: [PHP] $_GET and multiple spaces.
On Mon, January 14, 2008 3:17 am, Jochem Maas wrote:
I think actually the whole url should be urlencoded as a matter of
course, not
100% sure about this (and it's way to early on a monday to bother
checking up ;-) ...
maybe someone else can chime in?
Actually, after you urlencode() the values, you should htmlentities
the whole URL, as it is being passed to HTML as a value to be output
to HTML.
The whole URL should *NOT* be URL-encoded, however.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?
Like this?
$url =
htmlspecialchars('whatever.php?'.urlencode($name).'='.urlencode($value));
Regards,
Rob
.
- Follow-Ups:
- RE: [PHP] $_GET and multiple spaces.
- From: "Richard Lynch"
- RE: [PHP] $_GET and multiple spaces.
- References:
- $_GET and multiple spaces.
- From: "Churchill, Craig"
- Re: [PHP] $_GET and multiple spaces.
- From: clive
- Re: [PHP] $_GET and multiple spaces.
- From: Jochem Maas
- Re: [PHP] $_GET and multiple spaces.
- From: "Richard Lynch"
- $_GET and multiple spaces.
- Prev by Date: Re: [PHP] Browser cache setting
- Next by Date: Re: [PHP] Why is some_function()[some_index] invalid syntax?
- Previous by thread: Re: [PHP] $_GET and multiple spaces.
- Next by thread: RE: [PHP] $_GET and multiple spaces.
- Index(es):
Relevant Pages
|