anzi vi invio il listato completo

Nota :il file dati.txt include i parametri di connessione(localhost password database etc.) l' ho verificato e risulta corretto (fa la connessione al database mi permette di visualizzare i dati inseriti etc)


<?php
if (isset($nome)){
include("dati.txt");
$link=mysql_connect("$db_host","$db_login","$db_pa ss")
or die ("Non riesco a connettermi a [b]$db_host");

mysql_select_db ($database, $link)
or die ("Non riesco a selezionare il db $database
");

$dati=" INSERT INTO rubrica VALUES ('',
'$titolo',
'$nome',
'$cognome',
'$via',
'$citta',
'$provincia',
'$cap',
'$tel',
'$cell')";
mysql_query ($dati, $link)
or die ("Non riesco ad eseguire la query $dati");
Echo "I Dati sono stati archiviati con successo nel DataBase $database";
mysql_close ($link);
echo "<meta http-equiv=refresh content=3;url=$PATH_INFO>";
}
?>
<html>
<head>
<meta name=Proprietà content=Apache3000>
<meta name=ProgId content=PHP Pratico>
<title>Form RUBRICA</title>
</head>
<body>
<TABLE border=0 width=100% cellpadding=3>
<tr>
<td width=100% colspan=2>
<p align=center>Inserisci nuovi recapiti nella rubrica
<form method=POST action=<? $PATH_INFO ?>>
</td>
</tr>
<tr>
<td width=18%>Titolo</td>
<td width=82%><input type=text name=titolo size=20></td>
</tr>
<tr>
<td width=18%>Nome</td>
<td width=82%><input type=text name=nome size=20></td>
</tr>
<tr>
<td width=18%>Cognome</td>
<td width=82%><input type=text name=cognome size=20></td>
</tr>
<tr>
<td width=18%>Via</td>
<td width=82%><input type=text name=via size=20></td>
</tr>
<tr>
<td width=18%>Città</td>
<td width=82%><input type=text name=citta size=20></td>
</tr>
<tr>
<td width=18%>Provincia</td>
<td width=82%><input type=text name=provincia size=20></td>
</tr>
<tr>
<td width=18%>CAP</td>
<td width=82%><input type=text name=cap size=20></td>
</tr>
<tr>
<td width=18%>Telefono</td>
<td width=82%><input type=text name=tel size=20></td>
</tr>
<tr>
<td width=18%>Cellulare</td>
<td width=82%><input type=text name=cell size=20></td>
</tr>
<tr>
<td width=18%><input type=submit value=Inserisci nuovi dati></td>
<td width=82%></form></td>
</tr>
</table>
</body>
</html>