input form with same name

Hi,

I have a problem with a form that it has of the input with the same
name: I cannot modify code HTML inserting [ ], in the variable $_POST
is always a single value, like I can recover also the others?

I cannot use stream_get_meta_data.

thanks
markux [ Fr, 01 Februar 2008 11:02 ] [ ID #1921969 ]

Re: input form with same name

On 1 Feb, 10:02, markux <marco.pata... [at] gmail.com> wrote:
> Hi,
>
> I have a problem with a form that it has of the input with the same
> name: I cannot modify code HTML inserting [ ], in the variable $_POST
> is always a single value, like I can recover also the others?
>
> I cannot use stream_get_meta_data.
>
> thanks

You should really fix the problem at source.

Since (I'm guessing?) it seems to be POST, you can't manually parse
the URI.

Have you tried apache_request_headers()?

C.
colin.mckinnon [ Fr, 01 Februar 2008 13:17 ] [ ID #1921977 ]

Re: input form with same name

On Fri, 01 Feb 2008 11:02:57 +0100, markux <marco.patania [at] gmail.com> wro=
te:

> Hi,
>
> I have a problem with a form that it has of the input with the same
> name: I cannot modify code HTML inserting [ ], in the variable $_POST
> is always a single value, like I can recover also the others?
>
> I cannot use stream_get_meta_data.

$rawinput =3D file_get_contents('php://input');

.... and then some custome code, parse_str() doesn't do the trick, perhap=
s =

the 'proper_parse_str' function someone contributed as user comment to =

http://nl2.php.net/manual/en/function.parse-str.php

-- =

Rik Wasmus
luiheidsgoeroe [ Fr, 01 Februar 2008 15:28 ] [ ID #1921999 ]

Re: input form with same name

many many many thnaks, it work fine!!!

Rik Wasmus ha scritto:

> On Fri, 01 Feb 2008 11:02:57 +0100, markux <marco.patania [at] gmail.com> wrote:
>
> > Hi,
> >
> > I have a problem with a form that it has of the input with the same
> > name: I cannot modify code HTML inserting [ ], in the variable $_POST
> > is always a single value, like I can recover also the others?
> >
> > I cannot use stream_get_meta_data.
>
> $rawinput = file_get_contents('php://input');
>
> ... and then some custome code, parse_str() doesn't do the trick, perhaps
> the 'proper_parse_str' function someone contributed as user comment to
> http://nl2.php.net/manual/en/function.parse-str.php
>
> --
> Rik Wasmus
markux [ Fr, 01 Februar 2008 18:16 ] [ ID #1922033 ]
PHP » comp.lang.php » input form with same name

Vorheriges Thema: Statistics for SHOW TABLE
Nächstes Thema: Problems with file creation