Passing parameter by form_open |
[eluser]Diegosf93[/eluser]
Hi, i have this issue, first i show the code and then explain it: Code: <div> 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.
[eluser]TWP Marketing[/eluser]
[quote author="Diegosf93" date="1346706884"]Hi, i have this issue, first i show the code and then explain it: Code: <div> 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.[/quote] Use the hidden input type Code: <?php $atributos = array('id' => 'form_operador'); Code: $error = $this->input->post('error');
[eluser]john_j[/eluser]
http://ellislab.com/forums/viewthread/110735/#558708 |
Welcome Guest, Not a member yet? Register Sign In |