Andrew > this produces this > > Parse error: parse error, unexpected T_ELSE in [..] Not that I'm a PHP programmer, but I suspect a mere typo (the second curlybrace is the wrong way round) is the culprit. Regards Chris Marsh