The only thing I see is that you miss the endif for If exist() in the second scriptlet [Wink]
_________________________