Without extracting the meta data and putting it in a database and then dynamically including it where ever you want, one possible hack is to access the DOM at the server level. PHP provides an extension for doing this,
http://www.php.net/dom.
In order to use this extension on the current page as opposed to opening and accessing another separate page, the only way that I can think to do it is to use output control functions, or ensure that nothing is output and the whole page ends up stored in the same variable. The latter would be more efficient, I think, from a resource usage point of view. With the former you allow the page to be written to the output buffer, then capture the page using output control functions, modify what you need to and then output it.
http://www.php.net/outcontrol.
Using this method you could, theoretically at least, access and modify the document similar to JavaScript on the client-side.
HTH!
Regards,
Rich
--
[
http://www.smilingsouls.net]
[
http://pear.php.net/Mail_IMAP] A PHP/C-Client/PEAR solution for webmail