Thanks guys...
I included this line in my code and it solves all the probs..
error_reporting(E_ALLE_NOTICE);
meaning that all errors except Notice types of errors are returned..The Notice will notify, among other things, og undeclared variables..
I found out that there is a corresponding option in PHP.INI that i can change for this too.
😃