Ho trovato questo codice ajax che dovrebbe fare al caso mio ma non mi funziona. HELP ME

prova.html

Codice PHP:
<html> <script>var myRequest null;  function CreateXmlHttpReq2(handler) {   var xmlhttp null;   try {     xmlhttp = new XMLHttpRequest();   } catch(e) {     try {         xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");     } catch(e) {         xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");     }   }   xmlhttp.onreadystatechange handler;   return xmlhttp; }  function myHandler2() {     if (myRequest.readyState == && myRequest.status == 200) {         document.getElementById("ex4result");         e.innerHTML myRequest.responseText;     } }  function esempio4() {     var nome document.f1.nome.value;     var Math.random();     myRequest CreateXmlHttpReq(myHandler2);     myRequest.open("GET","seconda.html");     myRequest.send(null); }</script> <body>   <form name="f1"> Nome: <input type="input" name="nome"/> <input type="button" value="Visualizza cognome" onclick="esempio4()"/> 
 Risultato: <div id="ex4result"/> </form>   </body> </html> 

seconda.php

Codice PHP:
<? if (isset($_GET['nome'])) {     $n strtolower($_GET['nome']);     $name['giorgio'] = "Bianchi";     $name['vittorio'] = "Rossi";     $name['augusto'] = "Verdi";     if (isset($name[$n])) {         echo("Il cognome di $n è $name[$n]");     } else {         echo("Non conosco il cognome di $n");     }     echo(" tempo corrente in secondi: ".time().""); } ?>

Lo so è un esempio banale ma non riesco a farlo girare!

Grazie ancora per l'aiuto.

Denis