I must know..
is
$this->form_validation->set_value('first_name')
the same as
$this->input->post('first_name')
?
They both seem to get the input value. Is the first one more secure if I’m validating inputs?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
set_value()is used to re-populate a form once it has failed validation. There is no additional filtering on it, so you should use$this->input->post()if you have no need to pass the value back to the form.