Monthly Archives: September 2009

Zend Form country lists

One task that comes up time and time again is creating a dropdown form element that is populated by a list of countries. In the past I solved this problem by keeping an key/value array of countries and their codes … Continue reading

Posted in PHP, Zend Framework | 1 Comment

htmlentities and character encoding

I recently came across a bug in some code I’d written where the input filters were doing something strange on certain peoples computers and truncating the inputted text when hitting a single quote. After a bit of googling I realised … Continue reading

Posted in PHP, Zend Framework | 2 Comments