interlinking php-xml-html in anchor onclick
I've a link like 

    <?php
    <a href="hhh.html" onclick="bbb.php">the link</a>
    ?>

the task is ... on clicking 'the link',  ppp.php has to go an url and process some data and generate some xxx.xml from which contents are to be loaded into hhh.html.

I've everything working but I want your suggestion that how to interlink the things with in single click.
interlinking php-xml-html in anchor onclick
===

I've a link like 

    <?php
    <a href="hhh.html" onclick="bbb.php">the link</a>
    ?>

the task is ... on clicking 'the link',  ppp.php has to go an url and process some data and generate some xxx.xml from which contents are to be loaded into hhh.html.

I've everything working but I want your suggestion that how to interlink the things with in single click.