Thanks for all the help guys. According to php faqts: http://www.faqts.com/knowledge_base/view.phtml/aid/6488 the problem can be solved by using the empty() function. Strange, but it works like a charm. Michael