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
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
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
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
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
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
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
7 matches
Mail list logo