Welcome Guest, Not a member yet? Register   Sign In
Form Validation
#1

(This post was last modified: 11-03-2022, 12:38 AM by BrusterThemand.)

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;
Reply
#2

Check again the POST variable name.
Make sure it is a unique name variable.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB