Welcome Guest, Not a member yet? Register   Sign In
CI Problem with form validation
#8

@FlevasGR

Pay attention on what @Avenirer wrote. It is not clear why you have chosen to activate the entire code only for POST request. $this->form_validation->run() makes its check only for POST requests.

It is possible validation rules to depend on the input POST data and they to need some modifications. Other approach for the same effect is defining special callback rules. But this is not your case. You can remove the if($_POST) check.

Anyway, in CodeIgniter 3 if you really need check explicitly for POST request, you may write if ($this->input->method() == 'post')
Reply


Messages In This Thread
CI Problem with form validation - by FlevasGR - 10-29-2014, 12:25 PM
RE: CI Problem with form validation - by ciadmin - 10-29-2014, 08:40 PM
RE: CI Problem with form validation - by FlevasGR - 10-30-2014, 04:33 AM
RE: CI Problem with form validation - by Narf - 10-31-2014, 11:49 AM
RE: CI Problem with form validation - by Avenirer - 10-30-2014, 05:56 AM
RE: CI Problem with form validation - by Avenirer - 10-30-2014, 06:12 AM
RE: CI Problem with form validation - by ivantcholakov - 10-31-2014, 10:00 PM



Theme © iAndrew 2016 - Forum software by © MyBB