Reply to Re: using $_GET[] locally?

Your name:

Reply:


Posted by Geoff Cox on 03/13/07 23:49

On Wed, 14 Mar 2007 00:44:19 +0100, Rik <luiheidsgoeroe@hotmail.com>
wrote:

>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] => http://127.0.0.1/assist/thanks.htm [recipient]
>> => extraemails [realname] => SPA Form [First_name] => geoff
>> [Last_name] => cox [Slider_Values] => 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,

Adding the [] does the trick!

Many thanks,

Geoff

[Back to original 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

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