Re: [PHP] Re: order of elements in $_POST super global

2006-06-10 Thread Ben Liu
Hi Richard, I'm basically building a custom mysql table to delimited text file function for a membership site. So I've got a lot of typical demographic info fields like name, address, etc. The site owners would like to dump the membership information for their own purposes, but they don't

Re: [PHP] Re: order of elements in $_POST super global

2006-06-09 Thread Richard Lynch
name="bool[0][careers]" might do what you want... it's really quite difficult to say without a concrete example... On Thu, June 8, 2006 10:20 am, Ben Liu wrote: > I probably should add some more details to my question: > > The names of the form checkboxes could be changed from ie: > bool_careers

Re: [PHP] Re: order of elements in $_POST super global

2006-06-09 Thread Richard Lynch
On Fri, June 9, 2006 7:34 am, Ben Liu wrote: > The basic problem is that the way a $_POST variable gets processed is > in the order it is in on the original form. This is an undocumented behaviour, almost for sure. Your script shouldn't rely on it, even if a skillion other scripts do. :-) -- Li

Re: [PHP] Re: order of elements in $_POST super global

2006-06-09 Thread Ben Liu
Hi Mike, Thanks for pointing that out. I hadn't thought of it but you are right. But I still don't think this addresses the issue of ordering. The basic problem is that the way a $_POST variable gets processed is in the order it is in on the original form. If you want to present the fields in one

RE: [PHP] Re: order of elements in $_POST super global

2006-06-09 Thread Ford, Mike
On 08 June 2006 16:20, Ben Liu wrote: > I probably should add some more details to my question: > > The names of the form checkboxes could be changed from ie: > bool_careers, bool_speaking, bool_internship, etc. to a single array > bool_questions[], for instance. The problem with that is that I a

Re: [PHP] Re: order of elements in $_POST super global

2006-06-08 Thread Ben Liu
dido de Souza Neto" <[EMAIL PROTECTED]> Cc: Sent: Thursday, June 08, 2006 1:14 PM Subject: Re: [PHP] Re: order of elements in $_POST super global Hello João, You are right that the $_POST variable does not receive anything for unchecked boxes. I didn't realize that. But I still ne

Re: [PHP] Re: order of elements in $_POST super global

2006-06-08 Thread Ben Liu
Hello João, You are right that the $_POST variable does not receive anything for unchecked boxes. I didn't realize that. But I still need the foreach loop for other reasons: So it looks like this: foreach ($_POST as $key => $data) { $query.="$key, "; } Instead o