News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

WebInOne.net:
Date validation for CodeIgniter 2
October 07, 2011 @ 11:57:21

On the WebInOne blog there's a post about doing some date validation in CodeIgniter 2 forms using the "set_validation" method.

I wrote a tutorial here about the CI date. At that post I used the HTML <select> for the input of date. Sometime our client can want to use text box for the date input. We need the validation for this date. I have found this code from here. It is for CI 1.7.* and PHP 5.2.*. So I change some code for the CI 2.0.* and PHP 5.3.*.

There's some code snippets included in the post showing how to use it in the form (HTML), setting the validation on the form object (for US and UK validation) and the actual code of the updated custom Validation class.

0 comments voice your opinion now!
date validation tutorial framework snippet form


blog comments powered by Disqus

Similar Posts

Rafael Dohms' Blog: Deploying a Symfony2 and Composer app on PagodaBox

Padraic Brady's Blog: Contributing To Zend Framework 2.0 Is Free! Hurry Before This Offer Ends!

NetTuts.com: Reflection in PHP

NETTUTS.com: Sanitize and Validate Data with PHP Filters

HowTo Forge: Fedora 8 Server Setup - LAMP, Email, DNS, FTP, ISPConfig - Page 6


Community Events





Don't see your event here?
Let us know!


laravel release podcast list developer refactor introduction series threedevsandamaybe language experience interview symfony2 install unittest opinion testing code community framework

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework