That's excellent Acorn. Couldn't that php file be incorporated directly into TG?