PHP MVC error, everything is working but there is this error message on the site

Asked

Viewed 97 times

-3

Notice: Undefined index: ok in C: xampp htdocs Olimpiada controller Controleusuario.php on line 17

inserir a descrição da imagem aqui

  • 3

    It is because you are not sending anything by post in the "ok" position. Stop giving error, you can put if(isset($_POST['ok']) && $_POST['ok'])

  • ALWAYS Read the error message calmly. It’s from the undefined, undefined variable "OK", in C:... on line 17. On your button, maybe, you didn’t put his name as OK

1 answer

0

This is why you should not be passing the OK index by post on $_POST. Debug the variable and see if everything you need is being sent.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.