A Date Pull-down Library
Because dates are so ubiquitous in Web interfaces and because working with dates is often comparatively nontrivial, now would seem to be a good time to look at a class library to automate some of the work that dates can present. Along the way we will revisit some of the techniques we have already covered. The simple date_pulldown library was born during the creation of a freelance job listing site. The project necessarily involved the presentation of multiple date pulldowns allowing employers to select both the start and end of contract periods, and for candidates to indicate periods of availability. A date pull-down, in this instance, is three separate select elements—one for day of the month, one for month, and another ...
Get Sams Teach Yourself PHP in 24 Hours, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.