Welcome Guest, Not a member yet? Register   Sign In
Form Validation Errors Not Showing?
#1

[eluser]Unknown[/eluser]
Code:
public function test()
    {
       $this->form_validation->set_rules('tin_number','TIN Number','required');

        if($this->form_validation->run() == TRUE)
        {
            echo $this->input->post('tin_number');
        }
       else {
        echo validation_errors();
        echo form_open();
        echo form_input('tin_number',set_value('tin_number'));
        echo form_submit('submit','Submit');
        echo form_close();
       }
      
    }

Can anyone help me figure out why this is not working?


Messages In This Thread
Form Validation Errors Not Showing? - by El Forum - 12-03-2012, 07:40 AM
Form Validation Errors Not Showing? - by El Forum - 12-03-2012, 09:13 AM
Form Validation Errors Not Showing? - by El Forum - 12-03-2012, 10:28 AM
Form Validation Errors Not Showing? - by El Forum - 12-04-2012, 02:15 AM
Form Validation Errors Not Showing? - by El Forum - 12-05-2012, 03:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB