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

[eluser]seegan[/eluser]
// Just code like this..

Code:
public function test()
    {
     $this->load->library('form_validation');
        $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();
       }
    }



//You need to load 'form_validation' library


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