title: Codeigniter Form validation problem
body: <p>Please please please can someone help me </p>
  
  <pre><code>$this-&gt;load-&gt;library('form_validation');
    $this-&gt;load-&gt;helper('cookie');
  
    $data = array();
  
  
    if($_POST) { 
     // Set validation rules including additional validation for uniqueness
     $this-&gt;form_validation-&gt;set_rules('yourname', 'Your Name', 'trim|required');
     $this-&gt;form_validation-&gt;set_rules('youremail', 'Your Email', 'trim|required|valid_email');
     $this-&gt;form_validation-&gt;set_rules('friendname', 'Friends Name', 'trim|required');
     $this-&gt;form_validation-&gt;set_rules('friendemail', 'Friends Email', 'trim|required|valid_email');
  
     // Run the validation and take action
     if($this-&gt;form_validation-&gt;run()) { 
      echo 'valid;
     }
    }
    else{
     echo 'problem';
    }
  </code></pre>
  
  <p>Form validation is coming back with no errors can cany one see why?</p>