Welcome Guest, Not a member yet? Register   Sign In
creating a form_validators for dates
#1

creating a form_validators for dates, how to proceed?

view.modulo

<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 >
                    </div>



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

(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
https://www.codeigniter.com/user_guide/g...aries.html
Reply
#3

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 )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB