[eluser]$ilovephp[/eluser]
[quote author="invision" date="1271688433"]Way-heeeeeey!!!!
That worked perfectly.
So if I wanted it to take the real value of the email field, how can I do this?
And would I just do this for the other fields on my page, instead of using the array?
Thank you once more for your help and patience.[/quote]
What do you mean get the real value of the email field? Did you mean the $_POST in PHP? Or, are you planning to repopulate the fields after error occurred upon submission of the form?
to retrieve the data submitted by a user, we use $this->input->post('field_name');
to repopulate the field with the data supplied by the user, you may use $this->validation->field_name.
So, in applying the $this->validation->field_name, we add something to the code i just gave you
Code:
$email = array
('name'=> 'email',
'id' => 'email',
'value'=>$this->validation->email
);
echo form_input($email);
you're welcome, by the way