Some HTML5 “Features” You Might Not Expect

As we continue to transition whole-hog into HTML5 with new Web development, there are a few things you might need to know before deciding how to handle certain situations. I have discovered two somewhat major gotchas over the last few months that really made me reconsider my usage of the new technology.

While articles, asides, headers, footers, etc. are a fantastic way to introduce semantics into your page designs, there are a few elements and attributes that might not do quite what you’d expect.

WordPress: Checkbox, Radio and Select Helper Functions

As you may or may not know, WordPress has two simple helper functions built into it that make it easy to determine whether a checkbox/radio button should be checked or a select option should be selected.

Improvements to Google Forms

It’s been a while since I’ve used the Google Docs interface to create a Web form; but I needed to create some quick, simple forms today. When I logged in and started creating the form, I didn’t really notice anything different.

However, as I worked more on the form, I noticed a nice update I hadn’t seen before. When creating forms within Google Docs, you can easily add section headers (along with additional text under the header) and even paginate your forms.

Add a Date Picker to Your Forms

The other day, I found myself in need of a nice, simple date picker for a form I’m developing. Being a fan of the MooTools javascript framework, I headed off to Google to look for a date picker that utilizes MooTools. I found a real winner.

The MooTools DatePicker from MonkeyPhysics is extremely simple to implement, works beautifully and is extremely customizable. On the site, you can also download four different “skins” for the date picker. For my purposes, I went ahead and stuck with the default skin (which only requires the download of a CSS file), but I can certainly see the value in some of the other themes. The page includes a lot of nice examples and some great documentation. In addition to what’s provided on that site, I’ve added a handful of tips after the jump.

CGForms First Beta Released

Over the last few years, I have been slowly working on developing a series of PHP classes to handle Web forms. I have finally got enough of the code together and in a portable format to feel comfortable releasing it to the public. The project is called CGForms, is hosted on SourceForge and is completely open and free.

CGForms is intended to make things easier and provide a process for PHP developers to churn out Web forms without having to worry about writing complex processing and validating scripts over and over again. CGForms offers a centralized codebase from which all of your forms are generated, validated and processed (by sending results through e-mail – using HTMLMimeMail5 – and/or saving them to a database).