Re: [PHP] Help retrieving an HTML array

2006-02-02 Thread Richard Lynch
On Wed, February 1, 2006 3:06 pm, John Nichel wrote: I also don't _have_ to declare variables, don't _have_ to call mysql_close, etc, but that doesn't make it a good practice. The above 'standard' is pretty and all, but how many browsers out there are 100% standards compliant? Quoting will

[PHP] Help retrieving an HTML array

2006-02-01 Thread Mauricio Pellegrini
Hi , I have a HTML page with a form in which there are some inputs like these: input type=text name=xname value=3303 input type=text name=xname value=9854 input type=text name=xname value=n... the name of the input is always the same ( xname ) This

Re: [PHP] Help retrieving an HTML array

2006-02-01 Thread Jochem Maas
Mauricio Pellegrini wrote: Hi , I have a HTML page with a form in which there are some inputs like these: input type=text name=xname value=3303 input type=text name=xname value=9854 input type=text name=xname value=n... the name of the input is always

Re: [PHP] Help retrieving an HTML array

2006-02-01 Thread Robert Cummings
On Wed, 2006-02-01 at 11:07, Mauricio Pellegrini wrote: Hi , I have a HTML page with a form in which there are some inputs like these: input type=text name=xname value=3303 input type=text name=xname value=9854 input type=text name=xname value=n...

Re: [PHP] Help retrieving an HTML array

2006-02-01 Thread Joe Henry
The input name must include [] (brackets) to let php know it's an array. Ex: input type=text name=xname[] value=3303 On Feb 1, 2006, at 9:07 AM, Mauricio Pellegrini wrote: Hi , I have a HTML page with a form in which there are some inputs like these: input type=text name=xname

Re: [PHP] Help retrieving an HTML array

2006-02-01 Thread John Nichel
Please don't hijack threads. Mauricio Pellegrini wrote: Hi , I have a HTML page with a form in which there are some inputs like these: input type=text name=xname value=3303 input type=text name=xname value=9854 input type=text name=xname value=n...

Re: [PHP] Help retrieving an HTML array

2006-02-01 Thread Mauricio Pellegrini
Thank you all for your valuable support. The problem is solved. Note: This kind of input definition (without the brackets) actually *DOES* create an array under HTML 4.x (and its subindexes are accesible thru javascript) input type=text name=xname value=3303 input type=text

Re: [PHP] Help retrieving an HTML array

2006-02-01 Thread John Nichel
Mauricio Pellegrini wrote: Thank you all for your valuable support. The problem is solved. Note: This kind of input definition (without the brackets) actually *DOES* create an array under HTML 4.x (and its subindexes are accesible thru javascript) input type=text name=xname

Re: [PHP] Help retrieving an HTML array

2006-02-01 Thread David Dorward
Robert Cummings wrote: input type=text name=xname[] value=n... I also took the liberty of adding double quotes to your attributes. There's no excuse for writing slop. Slop? authors may specify the value of an attribute without any quotation marks. The attribute value may only contain

Re: [PHP] Help retrieving an HTML array

2006-02-01 Thread Richard Lynch
Change it to: input name=xname[] On Wed, February 1, 2006 10:07 am, Mauricio Pellegrini wrote: Hi , I have a HTML page with a form in which there are some inputs like these: input type=text name=xname value=3303 input type=text name=xname value=9854

Re: [PHP] Help retrieving an HTML array

2006-02-01 Thread Richard Lynch
On Wed, February 1, 2006 2:52 pm, David Dorward wrote: Robert Cummings wrote: input type=text name=xname[] value=n... I also took the liberty of adding double quotes to your attributes. There's no excuse for writing slop. Slop? authors may specify the value of an attribute without any

Re: [PHP] Help retrieving an HTML array

2006-02-01 Thread David Dorward
Richard Lynch wrote: There's no excuse for writing slop. We recommend using quotation marks even when it is possible to eliminate them. Presumably because its less hassle to do so then to try to remember the exceptions. It doesn't make code that ignores that suggestion slop. -- David

Re: [PHP] Help retrieving an HTML array

2006-02-01 Thread Robert Cummings
On Wed, 2006-02-01 at 18:34, David Dorward wrote: Richard Lynch wrote: There's no excuse for writing slop. We recommend using quotation marks even when it is possible to eliminate them. Presumably because its less hassle to do so then to try to remember the exceptions. It doesn't

Re: [PHP] Help retrieving an HTML array

2006-02-01 Thread John Nichel
David Dorward wrote: Robert Cummings wrote: input type=text name=xname[] value=n... I also took the liberty of adding double quotes to your attributes. There's no excuse for writing slop. Slop? Yes, slop, ie sloppy. authors may specify the value of an attribute without any