Codeigniter Form validation problem
Posted
by ben robinson
on Stack Overflow
See other posts from Stack Overflow
or by ben robinson
Published on 2010-04-14T19:41:33Z
Indexed on
2010/04/14
19:43 UTC
Read the original article
Hit count: 303
codeigniter
Please please please can someone help me
$this->load->library('form_validation'); $this->load->helper('cookie');
$data = array();
if($_POST) { // Set validation rules including additional validation for uniqueness $this->form_validation->set_rules('yourname', 'Your Name', 'trim|required'); $this->form_validation->set_rules('youremail', 'Your Email', 'trim|required|valid_email'); $this->form_validation->set_rules('friendname', 'Friends Name', 'trim|required'); $this->form_validation->set_rules('friendemail', 'Friends Email', 'trim|required|valid_email');
// Run the validation and take action if($this->form_validation->run()) { echo 'valid; } } else{ echo 'problem'; }
Form validation is coming back with no errors can cany one see why?
© Stack Overflow or respective owner