[Typo3] checkbox logic?! 10boxes in two rows

Peter Klein peter at umloud.dk
Fri Dec 16 14:40:11 CET 2005


Hi ?? It's a simple bitmask..
http://www.joestump.net/170933118/a-quick-bitmask-howto-for-programmers.html

-- 
Peter Klein/Umloud Untd


"T.Joga" <email at welho.com> skrev i en meddelelse 
news:mailman.1.1134737446.12841.typo3-english at lists.netfielders.de...
> Hi! Whats the logic in the checkbox values?! There must be some, because 
> it is working!
>
> If box number 1 is selected value in DB is 1;
> 1. -> 1
> 2. -> 2
> 3. -> 4
> 4. -> 8
> 5. -> 16
> 6. -> 32
> ..
> 1,2 -> 3
> 1,2,3 -> 7
> 1,2,3,4 -> 15
>
> ok, multi select values are counted 1+2+.. but how I should separate 
> different values from each other? 





More information about the TYPO3-english mailing list