1// Your array index has no value or is not referencing anything,
2// The easiest way to overcome this is to simply check whether
3// it has been defined
4if (isset($arr[$i])) {
5 // Do something
6}
1// Before using $_POST['value'] if (isset($_POST['value'])) { // Instructions if $_POST['value'] exist }