Category: "PHP"

PHP unpure...

"[...] as I have said so many times, PHP is not about purity in CS principles or architecture, it is about solving the ugly web problem with an admittedly ugly, but extremely functional and convenient solution. If you are looking for purity you are in the wrong boat. Get out now before you get hit by a wet cat!"

-Rasmus Lerdorf, creator of PHP

Makes sense... but just one thing: why is the web problem supposed to be ugly ?

PHP oddities :(

Actually I had not really looked into PHP since early version 3 betas... I knew it had gotten better, but sometimes I wonder if I didn't overestimate this... :-/

Looks like PHP 4.3 still requires that you name a collection of checkboxes or a select multiple with a name ending with "[]" such as <input type="checkbox" name="collect[]" value="3" />. That [] makes it impossible to DOM-handle the objects with javascript... but if you don't include the [], you just won't get all the checked values, neither as a table nor as a list... only the last one! :!:

What year is this? 1995? :'(

As far as I remember, ColdFusion and ASP have been handling this elegantly since version 1.0!