Welcome Guest, Not a member yet? Register   Sign In
new form_validation array question
#1

[eluser]EugeneS[/eluser]
Hello,

according to the docs i'm using it this way:
inside html form
Code:
<input type="text" name="Order[]" value="1">
<input type="text" name="Order[]" value="2">
<input type="text" name="Order[]" value="3">

controller:
Code:
$this->load->library('form_validation');
$this->form_validation->set_rules( 'Order[]', 'Order', 'trim|integer|required');

if ($this->form_validation->run() == TRUE)
{
    print_r($this->form_validation->?????????????????);
}

the questions are:
1) instead of lot of questions above how can i access to the different "Order" fields data separately or may be at once as to array through which i can loop later to access data separately
2) in case of not an array can i still use the way which was previously used (in the old version of the library) like
Code:
$this->validation->FIELD_NAME
to get access to the some validated form field content

cant find these details in documentation


Messages In This Thread
new form_validation array question - by El Forum - 06-21-2010, 08:59 PM
new form_validation array question - by El Forum - 06-29-2010, 07:21 AM
new form_validation array question - by El Forum - 06-29-2010, 07:33 AM
new form_validation array question - by El Forum - 06-29-2010, 09:42 AM
new form_validation array question - by El Forum - 06-29-2010, 10:39 AM
new form_validation array question - by El Forum - 09-03-2010, 11:47 AM
new form_validation array question - by El Forum - 09-03-2010, 12:01 PM
new form_validation array question - by El Forum - 09-03-2010, 12:33 PM



Theme © iAndrew 2016 - Forum software by © MyBB