Greetings! My script is all about dynamic content. When I click a link, it will change the content of my div.
My problem is:

1. I want to show a form when link is clicked, unfortunately my script is capable only displaying strings.
2. I want to get the value of link being clicked. Ex. when I hit PC1, my div will display 'You just clicked PC 1. Please fill in the forms below'.


any idea?I'm going to process forms. really need help. Thank you.


Code:
<?php
class Test
{
  public static function hello()
  {
    // echo "<input type='text'>";
    echo "hello";
  }
}
?>
<html> 
<head> 
<title></title> 
<SCRIPT language="javascript"> 
function ReplaceContentInContainer(id,content) {
var container = document.getElementById(id);
container.innerHTML = content;
}
</SCRIPT> 
</head> 
<body> 
<div   id="example1div"   style="border-style:solid; padding:10px; text-align:center;">
I will be replaced when you click.
</div>
<a href="javascript:ReplaceContentInContainer ('example1div',' <?php echo Test::hello(); ?>')">PC 1</a>
<a href="javascript:ReplaceContentInContainer ('example1div',' <?php echo Test::hello(); ?>')">PC 2</a>
<a href="javascript:ReplaceContentInContainer ('example1div',' <?php echo Test::hello(); ?>')">PC 3</a>
</body> 
</html>