stolzyboy,
Thank you for your reply.
I haven't been able to get the code to work. However, is it because the code appears in a textarea (sorry, forgot to mention that) or shouldn't this make any difference?
When I tried your suggested code, the output reproduced it exactly instead of interpreting it as php...
Thanks again.
Jake