Welcome Guest, Not a member yet? Register   Sign In
array fields using form_validation
#5

[eluser]Yoshiyuki Mikome[/eluser]
I have understood it.
It required a number of rules same as the array!.


Code:
$this->form_validation->set_rules('name[0]', '', 'required');
$this->form_validation->set_rules('name[1]', '', 'required');

Even though the number of arrays to change, Oh my god!

I have attempt to automatically generate both the HTML5 form and validation table from the same definition table.
Hmm, I will consider a little more a good way without rewriting the system code.

Thunks.


Messages In This Thread
array fields using form_validation - by El Forum - 07-10-2012, 06:32 PM
array fields using form_validation - by El Forum - 07-10-2012, 10:05 PM
array fields using form_validation - by El Forum - 07-12-2012, 05:32 PM
array fields using form_validation - by El Forum - 07-12-2012, 06:54 PM
array fields using form_validation - by El Forum - 07-12-2012, 11:33 PM



Theme © iAndrew 2016 - Forum software by © MyBB