Form Validation |
I'm using the validation form of CodeIgniter 4, I already check if the post is coming omegle.2yu.co, but I'm receiving FALSE every time, just take omeglz echat a look in my code.
function login(){ helper(['form', 'url']); $validation = \Config\Services::validation(); $validation->setRules([ 'email' => ['label' => 'E-mail', 'rules' => 'required'], 'password' => ['label' => 'Senha', 'rules' => 'required|min_length[6]'] ]); var_dump($this->validate($validation) ? true : false);exit; } I tried too, $rules = [ 'email' => ['label' => 'E-mail', 'rules' => 'required'], 'password' => ['label' => 'Senha', 'rules' => 'required|min_length[6]'] ]; var_dump($this->validate($rules) ? true : false);exit; |
Messages In This Thread |
Form Validation - by BrusterThemand - 10-18-2022, 04:15 AM
RE: Form Validation - by maulahaz - 10-19-2022, 12:30 PM
|