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$_SESSION['yy'] = isset($_POST['yy']) ? $_POST['yy'] : ""; // This is on line 11
2$_SESSION['mm'] = isset($_POST['mm']) ? $_POST['mm'] : ""; // This is on line 12
3$_SESSION['dd'] = isset($_POST['dada']) ? $_POST['dada'] : ""; // This is on line 13
4
1// Before using $_POST['value'] if (isset($_POST['value'])) { // Instructions if $_POST['value'] exist }