title: Codeigniter form validation class
body: <p>I have a funny thing going on with my local dev setup. Using codeigniter I have a form that should simulate storing some info from a user in a database. At this point I don't have the database setup yet I just want the form to send me to the success page when the validation is complete. But when I submit the form it comes back and tells me that the name field is empty and I never get the success page. Am i missing something here? please look this up and tell me if I am missing something!
  this is the function in the controller that processes the form.</p>
  
  <pre><code>function showsupport()
  {
      $this-&gt;form_validation-&gt;set_rules('supportername','Name','trim|required|max_length[30]');
      $this-&gt;form_validation-&gt;set_rules('supporteremail','Email Address','trim|required|valid_email');
      $this-&gt;form_validation-&gt;set_rules('pledgedate','Pledge Date','trim|required');
      $this-&gt;form_validation-&gt;set_rules('messagetxt','Your Message','trim|required|xss_clean');
  
      if($this-&gt;form_validation-&gt;run() == FALSE)
      {
          $this-&gt;template-&gt;write_view('content','supportus');
          $this-&gt;template-&gt;render();
      } else {
          $this-&gt;template-&gt;write('content','Your submission was a success');
          $this-&gt;template-&gt;render();
      }
  }
  
  
  &lt;div id="supportform" class="formblock"&gt;
  
                  &lt;?php
                    $formdata = array('id'=&gt;'suppform');
                        echo form_open('homepage/showsupport',$formdata);
                       $namedata = array('name'=&gt;'supportname','id'=&gt;'supportname','size'=&gt;'30','max_length'=&gt;'25');
                       echo '&lt;label for="supportername"&gt;Your Name:'.form_input($namedata,set_value('supportname')).'&lt;/label&gt;&lt;br /&gt;&lt;br /&gt;';
                       $emaildata =  array('name'=&gt;'supporteremail','id'=&gt;'supporteremail','size'=&gt;'30','max_lenth'=&gt;'25');
                       echo '&lt;label for="supporteremail"&gt;Email Address:'.form_input($emaildata,set_value('suppoteremail')).'&lt;/label&gt;&lt;br /&gt;&lt;br /&gt;';
                       $pledgedata = array('name'=&gt;'pledgedate','id'=&gt;'pledgedate','size'=&gt;'30','max_length'=&gt;'20');
                       echo '&lt;label for="pledgedate"&gt;Today\'s Date:'.form_input($pledgedata,set_value('pledgedate')).'&lt;/label&gt;&lt;br /&gt;&lt;br /&gt;';
                       $msgdata = array('name'=&gt;'messagetxt','id'=&gt;'messagetxt','col'=&gt;'2','rows'=&gt;'8');
                       echo '&lt;label for="messagetext"&gt;Your Pledge:'.form_textarea($msgdata).'&lt;/label&gt;&lt;br /&gt;';
                       $submitdata = array('name'=&gt;'submitbtn','id'=&gt;'submitbtn','value'=&gt;'Send');
                       echo '&lt;label for="submitbutton"&gt;'.form_submit($submitdata).'&lt;/label&gt;&lt;br /&gt;';
                       echo form_close();
                  ?&gt;
              &lt;/div&gt;
          &lt;div id="errorsechoed"&gt;
              &lt;div class="ui-widget"&gt;
          &lt;div class="ui-state-error ui-corner-all" style="padding: 0 .7em; border: none;"&gt;                        
                        &lt;?php echo validation_errors('&lt;p&gt;&lt;span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"&gt;&lt;/span&gt;');?&gt;
  </code></pre>
  
  <p>this is the form it's self. I have to make a presentation in a few hours and this form working is key. Thanks for y'all help.</p>
  
  <p>E</p>