|
Posted by David on 07/08/06 11:52
On Sat, 8 Jul 2006 13:24:02 +0200, "Rik" <luiheidsgoeroe@hotmail.com>
wrote:
>David wrote:
>> I personally would not
>> use [] in "input type="checkbox" name="skill[]" value
>> ="16">--apparently it works, though.
>
>Well, if one has a lot of 'boolean' options in a form, about the same kind
>of data, it's a hell of a lot faster & easier then checking for each
>individual value..
I guess I am missing something here. The input statement here will
set the value of skill to 16. If I have a lot of boolean items, then
I can set the fifth bit to "on"--which will indicate Delphi experience
here--by doing something like:
(int)applicant = (int)$applicant AND (int($_POST[skill]);
I guess my point is that "checkbox" is either checked or not
checked. The value passed to skill, in this case, is 16, not a
boolean value--true or false, for example.
Of course, as I already stated, I am probably missing something
here.
>Grtz,
David
Navigation:
[Reply to this message]
|