Answers for "codeigniter load form_validation"

PHP
3

codeigniter form_validation email

$this->form_validation->set_rules('email', 'Email', 'trim|required|valid_email');
Posted by: Guest on August-25-2020
0

codeigniter load form_validation

<?php

class Form extends CI_Controller {

        public function index()
        {
                $this->load->helper(array('form', 'url'));

                $this->load->library('form_validation');

                if ($this->form_validation->run() == FALSE)
                {
                        $this->load->view('myform');
                }
                else
                {
                        $this->load->view('formsuccess');
                }
        }
}
Posted by: Guest on March-04-2020

Browse Popular Code Answers by Language