Welcome Guest, Not a member yet? Register   Sign In
Passing parameter by form_open
#1

[eluser]Diegosf93[/eluser]
Hi, i have this issue, first i show the code and then explain it:

Code:
<div>
<div> &lt;?php echo $error ?&gt;</div>
&lt;?php $atributos = array('id' => 'form_operador');
echo form_open("Panel_Admin/Alta_OperadorE",$atributos); ?&gt;

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.


Messages In This Thread
Passing parameter by form_open - by El Forum - 09-03-2012, 02:14 PM
Passing parameter by form_open - by El Forum - 09-03-2012, 02:33 PM
Passing parameter by form_open - by El Forum - 09-04-2012, 06:40 AM



Theme © iAndrew 2016 - Forum software by © MyBB