PHP drop-down list - Part 6 (Adding Optgroups)

February 17, 2017 by Christoff Truter

In this post we're going to extend our select element to support optgroups and thereby complete our support for all select child elements.

PHP  

PHP drop-down list - Part 5 (Custom Serialization)

February 15, 2017 by Christoff Truter

In part 2 we quickly "talked" about having different serialization strategies for our html elements, but as an interim solution, I chose to use the XHTML spec as my standard markup, in this post we're going to decouple our serialization strategy.

PHP  

PHP drop-down list - Part 4 (Cleaning things up a bit)

February 14, 2017 by Christoff Truter

Up until this point we've got a very basic, but working drop-down list implementation, it is however quite fragile at the moment, since we're not doing enough validation checks not to mention all properties being public.

PHP  

PHP drop-down list - Part 3 (Maintaining State)

February 14, 2017 by Christoff Truter

Now that we've got everything serializing to HTML (or rather XHTML) properly, how do we retrieve selected values and maintain that state?

PHP  

PHP drop-down list - Part 2 (Serialization of elements to HTML)

February 14, 2017 by Christoff Truter

In order to serialize our newly created classes to the required markup, what needs to happen? We need to supply some metadata.

PHP