Answers for "form validation in codeigniter 3 with demo"

PHP
0

file form validation codeigniter

if (empty($_FILES['userfile']['name']))
{
    $this->form_validation->set_rules('userfile', 'Image', 'required');
}
Posted by: Guest on July-23-2020
1

form validation input inside api codeigniter

$this->form_validation->set_rules('user_api_key', 'User Api Id', 'trim|required');

if ($this->form_validation->run() == FALSE) {
  $data = strip_tags($this->form_validation->error_string());
  return $this->json_out($data, 0, $code = 'form_validation_error', $msg = 'Some Fields are required');
}
Posted by: Guest on November-16-2020

Code answers related to "form validation in codeigniter 3 with demo"

Browse Popular Code Answers by Language