[eluser]upstream[/eluser]
Hey guys
I have a hidden field where i store the record_id for updating. but once the user submit and the goes to validation process it seems that the hidden field's value is gone @__@ been checking this for hours now so i think i need a little help here.
The rules
Code:
public function _set_rules()
{
$rules = array(array('field'=>'customer_id','Customer','rules'=>'required|xss_clean'),
array('field'=>'customer_name','label'=>'Customer','rules'=>'trim|required|min_length[3]|max_length[100]|callback__name_check|xss_clean'),
array('field'=>'description','label'=>'Description','rules'=>'xss_clean'));
$this->form_validation->set_rules($rules);
$this->form_validation->set_error_delimiters('<div>','</div>');
}
The hidden field
Code:
<input type="hidden" name="customer_id" value="<?php echo set_value('customer_id'); ?>" />
please help @__@