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