Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Karan validation-rules


Published on

php validation rules

kran info sys

  • Be the first to comment

  • Be the first to like this

Karan validation-rules

  1. 1. Your controller should now look like this<?phpclass Form extends CI_Controller { function index() { $this->load->helper(array(form, url)); $this->load->library(form_validation); $this->form_validation->set_rules(karanchanana, Karanchanana, required); $this->form_validation->set_rules(password, Password, required); $this->form_validation->set_rules(passconf, Password Confirmation, required); $this->form_validation->set_rules(email, Email, required); if ($this->form_validation->run() == FALSE) { $this->load->view(myform); } else { $this->load->view(formsuccess); }
  2. 2. }}?>