error_reporting not to offer!

The bottom line is what? Page a includes page b , before performing certain actions that do not include POST and GET requests, you need to hide the Undefined offset : error. The error results from the missing parameter in the array. Running the error of course disappears!

    1 answer 1

    if(!isset($_POST['some_undefined_key'])){//Вместо $_POST можно любой другой массив, который провоцирует ошибку $_POST['some_undefined_key'] = ''; } 

    And ... yes. This must be done for all keys (possible in a loop) that the page may request.

    • one
      I earned) completely forgotten! Isset probyval just isset. Thank. - Palmervan
    • happens :) - Zowie