salve
praticamente questo codice mi deve inserire un nome e ujn numero in 2 vettori separati e poi cercare un determinato nome se e' presente
io sono bloccato perche non riesco a fare inserire i dati nel vettore. potreste darmi una mano?
Codice PHP:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<
html>
<
head>
<
script type="text/javascript" >
function 
Rubrica (p,n) {
x=p.value;
y=n.value;
document.write(y);
var 
nomi = new Array ();
var 
numeri = new Array ();
this.inserisci = function(p,n)
{
this.nomi[this.nomi.length] = p;
window.alert(p);
this.numeri[this.numeri.length] = n;
}

this.cerca = function (p)
{
for (var 
0i<= this.nomi.lengthi++){
if (
this.nomi[i] == p)
window.alert ("Nome"+this.nomi[i], +"Numero"this.numeri[i]);
}

}
</script>
    <title></title>
</head>

<body>
<form name="s" >
<input type="text" name="p">Nome


<input type="text" name="n">Numero
<input type="button" value="prova" onclick="
inserisci(p,n);
"/>

</form>


</body>
</html>