Welcome Guest, Not a member yet? Register   Sign In
Default value of form validation when not validation control
#1

[eluser]Unknown[/eluser]
Dear all,

what is default value of form validation, if doesn't validate any control ?
It true or false?

ACTION when click submit button.

$this->load->helper(array('form', 'url'));
$this->load->library('form_validation');
if ($this->validation->run() == FALSE) {

echo "fail";

} else {

echo "formsuccess";

}
#2

[eluser]Aken[/eluser]
run() returns FALSE if no POST data is present, or if the validation fails.




Theme © iAndrew 2016 - Forum software by © MyBB