Unable to access an error message corresponding to your field name

前端 未结 5 813
情书的邮戳
情书的邮戳 2020-12-29 23:37

I have a callback function that check_captcha which sees if $row is ==0 or == 1 (this information is queried from sql).

The p

5条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-29 23:51

    You can set error message in set_rules :

    $this->form_validation->set_rules('captcha', 'Captcha', 'callback_check_captcha',

    array('check_captcha' => 'text dont match captcha'));

提交回复
热议问题