When a user submits a form, the data is processed by a specific method in a controller. To securely handle this data, the controller should use ________.

  • $this->form_validation->run()
  • $this->input->get()
  • $this->input->post()
  • $this->security->xss_clean()
When handling form data in CodeIgniter, it's crucial to sanitize and secure the input. The $this->security->xss_clean() method helps in removing potentially harmful content, preventing cross-site scripting (XSS) attacks.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *