introduced additional debugging in headed for POST variables, put all debugging in header.php

Thanks Tushka!!
If somebody has programming experience it definitely helps a lot :)