Make submit form template work with PHP 5.2