Notice: Undefined index: ok in C: \ xampp \ htdocs \ olimpiada \ controller \ ControlUser.php on line 17
This is why you should not be passing the OK index per post in $_POST
. Debug the variable and see if everything you need is being sent.