<html>
<head>
<title>Prova</title>
</head>
<body>
<div>
<label>Registrati al sito:</label>

</div>
<form id="registration" action="/cgi-bin/registration.cgi" method="POST">
<fieldset>
<label>Nome:</label> <input id="profile" type="text" name="profile"/>

<label>Cognome:</label> <input type="text" name="country"/>

<label>Email:</label> <input id="email" type="text" name="email"/>

<label>Reinserisci email:</label> <input id="email2" type="text" name="email2"/>

<label>Password:</label> <input id="password" type="password" name="password"/>

<label>Reinserisci password:</label> <input id="password2" type="password" name="password2"/>



</fieldset>


<input type="submit" align="right" value="Registrazione"/>

</form>
</body>
</html>
Vorrei che fossero inviati solo i dati del form e che dopo la registrazione venisse visualizzata (al posto del form) la scritta "Registrazione effettuata con successo".

Programma AJAX:

function assegnaXMLHttpRequest() {

var XHR = null,

browserUtente = navigator.userAgent.toUpperCase();

if(typeof(XMLHttpRequest) === "function" || typeof(XMLHttpRequest) === "object") {
XHR = new XMLHttpRequest();
}
else {
XHR = new ActiveXObject("Microsoft.XMLHTTP");
}
return XHR;
}

var ajax = assegnaXMLHttpRequest();

if(ajax) {
ajax.open("GET", ??, true);
Ad esempio cominciamo con questo esempio.
1) Al posto di nomefile in ajax.open cosa devo mettere?
2) fin ad ora sta bene?
3) come posso continuare?