You are here: Re: using $_GET[] locally? « PHP Programming Language « IT news, forums, messages
Re: using $_GET[] locally?

Posted by Rik on 03/13/07 23:44

Geoff <Cox> wrote:

> On Tue, 13 Mar 2007 23:52:30 +0100, Rik <luiheidsgoeroe@hotmail.com>
> wrote:
>
>> print_r($_GET);
>
> Thanks for the idea.
>
> I tried above and get
>
> Array ( [redirect] =3D> http://127.0.0.1/assist/thanks.htm [recipient]=

> =3D> extraemails [realname] =3D> SPA Form [First_name] =3D> geoff
> [Last_name] =3D> cox [Slider_Values] =3D> Situation - \'Scripted\'
> Conversations: 3 0 3 3 3 3 3 3 )
>
> I am only getting the first of the [Slider_Values] - any idea why?

Yes, the last one sticks, overwriting the rest. You'd either have to =

manually parse the string for it's contents if you don't want this =

(someone posted a reasoonable solution on http://www.php.net/parse_str, =
or =

another solution is the add '[]' at the end of the keys that repeat, as =
=

PHP will then create an array for you.
-- =

Rik Wasmus
Posted on Usenet, not any forum you might see this in.
Ask Smart Questions: http://tinyurl.com/anel

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация