[eluser]Diegosf93[/eluser]
Hi, i have this issue, first i show the code and then explain it:
Code:
<div>
<div> <?php echo $error ?></div>
<?php $atributos = array('id' => 'form_operador');
echo form_open("Panel_Admin/Alta_OperadorE",$atributos); ?>
Here is a bit piece of the view code of my site that call a method of the controller Panel_Admin call Alta_Operador.
I want to have a method that receive an $error parameter that indicate if is it an error in the form validation or not, but i dont know how to pass by the form_open an empty text to the first load of the form.
So i have 2 method that make the same but one show an error an another i use when i load the page and this not seems so good.
Thanks sorry for my english.