Eheh si scusa,hai ragione..in effetti sono molto confuso anche io...in pratica cerco di creare una rubrica e ho 3 form,un pulsante per aggiungere una voce e la voce cancella che resetta i campi.Prima avevo inserito 3 input text che raccoglievano i dati dei form(ora nel codice non ci sono).Come faccio a inserire,con lo stesso bottone 'Aggiungi' i dati prima ad una input text e poi a all'altra in basso?scusami se sono poco chiaro >.<

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Database</title>
</head>
<script language="JavaScript" type="text/javascript">
function aggiungi(){
var x=document.name.tab1.value=document.name.x.value
var y=document.name.tab2.value=document.name.y.value
var c=document.name.tab3.value=document.name.j.value
}
</script>
<div align="center"><font face="Verdana, Geneva, sans-serif"><font size="4">Rubrica

</div>
<form name="name">
<font face="Verdana, Geneva, sans-serif"><font size="2">
<table width="200" border="1">
<tr>
<th scope="col">Nome<input type="text" name="x" /></th>
<th scope="col">Cognome<input type="text" id="y" /></th>
<th scope="col">Cellulare<input type="text" id="j" /></th>
</tr>
</form>


<input type="button" value=Aggiungi onclick="aggiungi()"/>
<input type="reset" value="Cancella" />
</body>
</html>