Re: [PHP] $_GET and multiple spaces.

2008-01-14 Thread Jochem Maas
Andrés Robinet schreef: -Original Message- ... $name = 'mylist[myindex]'; this is almost an invite to moan about how http_build_query() was 'fixed' in 5.1.3 to escape square brackets ... which makes php nolonger do one of the coolest, imho, with regard to incoming GET/POST values -

RE: [PHP] $_GET and multiple spaces.

2008-01-14 Thread Andrés Robinet
> -Original Message- > From: Jochem Maas [mailto:[EMAIL PROTECTED] > Sent: Monday, January 14, 2008 8:34 PM > To: Andrés Robinet > Cc: php-general@lists.php.net > Subject: Re: [PHP] $_GET and multiple spaces. > > Andrés Robinet schreef: > >> -Origina

Re: [PHP] $_GET and multiple spaces.

2008-01-14 Thread Jochem Maas
Andrés Robinet schreef: -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Monday, January 14, 2008 7:08 PM To: Andrés Robinet Cc: php-general@lists.php.net Subject: RE: [PHP] $_GET and multiple spaces. On Mon, January 14, 2008 1:33 pm, Andrés Robinet wrote

RE: [PHP] $_GET and multiple spaces.

2008-01-14 Thread Andrés Robinet
> -Original Message- > From: Richard Lynch [mailto:[EMAIL PROTECTED] > Sent: Monday, January 14, 2008 7:08 PM > To: Andrés Robinet > Cc: php-general@lists.php.net > Subject: RE: [PHP] $_GET and multiple spaces. > > On Mon, January 14, 2008 1:33 pm, Andrés Robinet w

RE: [PHP] $_GET and multiple spaces.

2008-01-14 Thread Richard Lynch
On Mon, January 14, 2008 1:33 pm, Andrés Robinet wrote: >> -Original Message- >> From: Richard Lynch [mailto:[EMAIL PROTECTED] >> Sent: Monday, January 14, 2008 2:11 PM >> To: Jochem Maas >> Cc: clive; Churchill, Craig; php-general@lists.php.net >> S

RE: [PHP] $_GET and multiple spaces.

2008-01-14 Thread Churchill, Craig
> -Original Message- > From: Andrés Robinet [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 15 January 2008 6:33 AM > To: php-general@lists.php.net > Subject: RE: [PHP] $_GET and multiple spaces. > Like this? > > $url = > htmlspecialchars('whatever.php?'.

RE: [PHP] $_GET and multiple spaces.

2008-01-14 Thread Andrés Robinet
> -Original Message- > From: Richard Lynch [mailto:[EMAIL PROTECTED] > Sent: Monday, January 14, 2008 2:11 PM > To: Jochem Maas > Cc: clive; Churchill, Craig; php-general@lists.php.net > Subject: Re: [PHP] $_GET and multiple spaces. > > On Mon, January 14, 2008 3:

Re: [PHP] $_GET and multiple spaces.

2008-01-14 Thread Richard Lynch
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 v

Re: [PHP] $_GET and multiple spaces.

2008-01-14 Thread Richard Lynch
On Sun, January 13, 2008 6:04 pm, Churchill, Craig wrote: > One of the values I'm passing in a URL string contains multiple > spaces. > > ... > (The multiple spaces are between Argononemertes and australiensis) *ALL* data passed by URL to GET should be urlencoded: http://php.net/urlencode urlenco

Re: [PHP] $_GET and multiple spaces.

2008-01-14 Thread Jochem Maas
thanks, Nisse, for clearing up my half-baked-monday-morning answer. AFAICT (now that I have woken up somewhat) you are indeed correct. Nisse Engström schreef: On Mon, 14 Jan 2008 10:17:03 +0100, Jochem Maas wrote: clive schreef: Hi - What Al said, but you want to use the url_encode/url_decode

Re: [PHP] $_GET and multiple spaces.

2008-01-14 Thread Nisse Engström
On Mon, 14 Jan 2008 10:17:03 +0100, Jochem Maas wrote: > clive schreef: >> Hi - What Al said, but you want to use the url_encode/url_decode >> functions in php > > you don't need to use url_decode() because php will do that automatically > for incoming data - the caveat being situations where do

Re: [PHP] $_GET and multiple spaces.

2008-01-14 Thread Jochem Maas
clive schreef: Hi - What Al said, but you want to use the url_encode/url_decode functions in php you don't need to use url_decode() because php will do that automatically for incoming data - the caveat being situations where double urlencoding is being used (anyone playing with multiple redirec

Re: [PHP] $_GET and multiple spaces.

2008-01-14 Thread clive
Hi - What Al said, but you want to use the url_encode/url_decode functions in php Clive Churchill, Craig wrote: Hello, One of the values I'm passing in a URL string contains multiple spaces. ... (The multiple spaces are between Argononemertes and australiensis) However when I retrieve the v

[PHP] $_GET and multiple spaces.

2008-01-13 Thread Churchill, Craig
Hello, One of the values I'm passing in a URL string contains multiple spaces. ... (The multiple spaces are between Argononemertes and australiensis) However when I retrieve the value using $_GET[DarScientificName] there is only a single space between the two names which I understand is the int