Re: [PHP] Re: Parsing of forms

2009-05-20 Thread Daniele Grillenzoni
On 20/05/2009 12.50, Ford, Mike wrote: Humph! Yes, ok, I concede this point. I also bow to Daniele's need to process forms designed by someone else with (not-PHP) in mind. Actually, I can see the validity of both sides of the argument, and I teeter on the fence as to whether the [] method is "ri

Re: [PHP] Re: Parsing of forms

2009-05-20 Thread Andrew Ballard
On Wed, May 20, 2009 at 6:50 AM, Ford, Mike wrote: > On 19 May 2009 17:10, Andrew Ballard advised: >>               var toppings = document.sundae.toppings; >>                 // To work with PHP, the above line would >> have to be changed: >>                 // var toppings = >> document.sundae.e

Re: [PHP] Re: Parsing of forms

2009-05-20 Thread Raymond Irving
Hello, Here's another quick solution that shouldn't add much overhead: // get input $qry = 'toppings=sprinkles&toppings=nuts&toppings=fudge&toppings=caramel&toppings=strawberries'; //$qry = $_SERVER['QUERY_STRING']; // parser input $qry = str_replace('&toppings=','&toppings[]=',$qry); parse_st

Re: [PHP] Re: Parsing of forms

2009-05-20 Thread Tom Worster
On 5/20/09 6:50 AM, "Ford, Mike" wrote: > Humph! Yes, ok, I concede this point. I also bow to Daniele's need to > process forms designed by someone else with (not-PHP) in mind. Actually, > I can see the validity of both sides of the argument, and I teeter on > the fence as to whether the [] meth

RE: [PHP] Re: Parsing of forms

2009-05-20 Thread Ford, Mike
On 19 May 2009 17:10, Andrew Ballard advised: > On Tue, May 19, 2009 at 10:11 AM, Ford, Mike > wrote: >> On 19 May 2009 14:37, Daniele Grillenzoni advised: >> >>> >>> My complaint is this: a I can have a select multiple with a normal name, >>> which is allowed by every spec, but PHP requires me

Re: [PHP] Re: Parsing of forms

2009-05-20 Thread Nathan Rixham
Daniele Grillenzoni wrote: On 20/05/2009 2.45, Nathan Rixham wrote: Daniele Grillenzoni wrote: On 19/05/2009 18.09, Andrew Ballard wrote: On Tue, May 19, 2009 at 10:11 AM, Ford, Mike wrote: On 19 May 2009 14:37, Daniele Grillenzoni advised: My complaint is this: a I can have a select multi

Re: [PHP] Re: Parsing of forms

2009-05-20 Thread Daniele Grillenzoni
On 20/05/2009 2.45, Nathan Rixham wrote: Daniele Grillenzoni wrote: On 19/05/2009 18.09, Andrew Ballard wrote: On Tue, May 19, 2009 at 10:11 AM, Ford, Mike wrote: On 19 May 2009 14:37, Daniele Grillenzoni advised: My complaint is this: a I can have a select multiple with a normal name, whic

Re: [PHP] Re: Parsing of forms

2009-05-19 Thread Nathan Rixham
Daniele Grillenzoni wrote: On 19/05/2009 18.09, Andrew Ballard wrote: On Tue, May 19, 2009 at 10:11 AM, Ford, Mike wrote: On 19 May 2009 14:37, Daniele Grillenzoni advised: My complaint is this: a I can have a select multiple with a normal name, which is allowed by every spec, but PHP requi

Re: [PHP] Re: Parsing of forms

2009-05-19 Thread Daniele Grillenzoni
On 19/05/2009 18.09, Andrew Ballard wrote: On Tue, May 19, 2009 at 10:11 AM, Ford, Mike wrote: On 19 May 2009 14:37, Daniele Grillenzoni advised: My complaint is this: a I can have a select multiple with a normal name, which is allowed by every spec, but PHP requires me to use [] in order to

Re: [PHP] Re: Parsing of forms

2009-05-19 Thread Andrew Ballard
On Tue, May 19, 2009 at 10:11 AM, Ford, Mike wrote: > On 19 May 2009 14:37, Daniele Grillenzoni advised: > >> >> My complaint is this: a I can have a select multiple with a >> normal name, >> which is allowed by every spec, but PHP requires me to use [] >> in order >> to properly retrieve the valu

RE: [PHP] Re: Parsing of forms

2009-05-19 Thread Ford, Mike
On 19 May 2009 14:37, Daniele Grillenzoni advised: > > My complaint is this: a I can have a select multiple with a > normal name, > which is allowed by every spec, but PHP requires me to use [] > in order > to properly retrieve the values. I really don't understand the problem with this -- in fa