I have stuck at those notices.
$ID = $_GET['ID']; if (!$ID) { // code }
The undefined index refers to the index 'ID' in your $GET statement when no ID is defined. If you lower the error message levels it will disappear. However, neater would be to do: if(isset($GET['id'])) { $id = $_GET['id']; }
Another common idiom is to do something like:
$id = (isset($_GET['ID'])) ? $_GET['ID'] : "some default value here";
And in case you're wondering, NogDog's example utilizes the ternary operator to save you some space/keystrokes.