It's telling you that it has no idea what $EmpName is supposed to be: you've never given it a value (you don't actually do so until later). Do you not mean $_POST['EmpName']?
Similarly, for $POST['ID'] - if the form never sends back a value for its ID field, $POST['ID'] won't exist, and PHP will again complain if you then try to use it.
So the rule is: make sure your variables actually exist before you try to use them. You can use [man]isset[/man] and [man]empty[/man] for this - presumably, if those variables don't exist, then someone didn't fill out the form properly, and you want to know about that to deal with it.