Welcome Guest, Not a member yet? Register   Sign In
Calling index() on form validation failure
#5

(This post was last modified: 10-26-2016, 08:18 AM by salain. Edit Reason: Syntax error )

I have tried with a validation function in a helper

You just have change the call to your function.


From this
PHP Code:
$this->form_validation->set_rules('f_eventname''Event Name''required|trim|min_length[3]|max_length[100]|callback_customAlpha'); 

to
PHP Code:
$this->form_validation->set_rules('f_eventname''Event Name'
 
         array('required','other validation', array('customAlpha''customAlpha')); 

Your custom validation function is in an array to allow to set the error message.
A good decision is based on knowledge and not on numbers. - Plato

Reply


Messages In This Thread
RE: Calling index() on form validation failure - by salain - 10-26-2016, 07:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB