Welcome Guest, Not a member yet? Register   Sign In
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

(This post was last modified: 07-09-2019, 11:55 PM by neuron.)

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 )

Theme © iAndrew 2016 - Forum software by © MyBB