• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
creating a form_validators for dates

creating a form_validators for dates, how to proceed?


<div class="form-group">
                        <label class="col-sm-2 control-label">Data de Inativação</label>
                       <div class="col-sm-2">
                       <input type="date" name="data_inativacao" class="form-control" placeholder="Data de Inativação" required >

I want to use validation in the controler, in the insertion of the data

You can extend CI's Form_validation  library and write your own method to validate dates

DATETIME validation in CodeIgniter or how to create your own validation rules with callbacks and/or extending the form validation library
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.