Welcome Guest, Not a member yet? Register   Sign In
Validation Form required and callback dont function
#1

HI I am in trouble. Codeigniter 3
I am using validation form using required and a callback funcion
But it dont works, I am in edit controller and view.
When i call the callback function with a celular thats exists it tells me the celular exists but When i try to change the celular to another it tells me
Debe ingresar el celular, Just cannot change the celular number to another new
<div class="form-group">
<label for="volasoccel">Celular</label><?php echo form_error('volasoccel', '<span class="alerta"> *', '</span>'); ?>
<input value="<?php echo $volasoc[0]->Celular; ?>" required  type="text" name="volasoccel" class="form-control" id="volasoccel" placeholder="Celular" >
</div>

$this->form_validation->set_rules('volasoccel', 'Celular', 'required|callback_volasoccel_check[tvolasoc.TVOLASOC_CEL]|numeric|xss_clean',

array('required' => 'Debe ingresar el Celular'));

THis is happendnig also with the email just there is an error I can see
Can someone help me
Reply




Theme © iAndrew 2016 - Forum software by © MyBB