Reply to Re: checkbox - again

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация