Thanks Vodoo for checking.

i wasn't sure if it meant if empty.. or if not empty.
and right after i posted i looked at the code again,
and moved the eval to outside the if statement.
just to make a cleaner code.

i have a lot of experience in php coding.
and in the early years some basic and c coding.
it all looks simular, but it's those little differences that
throw you off balance

Thanks for the input, hope i'm not the only one profiting from this afford!
Kind regards,
Arnold