We are using the javascript for tooltips as popups doing this we can parse the information into the html. If there is a better way to do this that will achieve the same please let us know.
As all we really need is popups that will allow mouseover and out that is easy to maintain that can be customize, we want to do this with ajax or some other popular language but don't know how.
As for the code this is what I got working.
<?php $text = $_GET['text'];
if (!$text) {die('No text selected');}
elseif($text=='this') {echo 'This Text goes here'; }
elseif($text=='that') {echo '1'; }
?>
Thank you and please advise