Ciao ragazzi ho un problema. Non riesco a memorizzare i dati che inserisco all'interno del form nel database. Il problemač ke il codice non mi da alcun errore.
Eccolo qui:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">


<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type ="text/css" href="foglio_di_stile.css"/>
<title>Fashion web</title>
</head>
<body text="FFCCFF">
<?PHP
$server = 'localhost';
$username = 'root';
$password = 'pippo';
$dbname = 'dati2';
$matricola=$_POST['matricola'];
$nome=$_POST['nome'];
$indirizzo=$_POST['indirizzo'];

$cap=$_POST['cap'];
$pass=$_POST['password'];



if (empty($pass) or empty($cap) or empty($matricola) or empty($nome)or empty($indirizzo))
{
echo '<script>alert ("Inserisci i dati mancanti.");history.back();</script>';
}
else
{
$connessione = mysql_connect($server,$username,$password,$dbname) or die ("Connessione al server non riuscita");
$db= mysql_select_db($dbname,$connessione) or die ("Database non trovato");



$query_sql="INSERT INTO dipendenti ('password','nome','matricola','indirizzo','cap') VALUES ('$pass','$nome','$matricola','$indirizzo','$cap') ";
$result=mysql_query($query_sql,$connessione);
mysql_close($connessione);}
?>
</br></br></br></br></br></br></br></br>
<p align=center><font face="broadway" color="0000FF" size="5"><marquee>AREA DIPENDENTI - Menu</marquee></font></p>
<p align=center>
<table align=center>
<tr><td>[img]immagini/macchina.gif[/img]</td><td align=left>Carico merci</td></tr>
<tr><td>[img]immagini/macchina.gif[/img]</td><td align=left>Scarico merci</td></tr>
<tr><td>[img]immagini/macchina.gif[/img]</td><td align=left>Inserisci nuovo prodotto</td></tr>
<tr><td>[img]immagini/macchina.gif[/img]</td><td align=left>Elimina prodotto</td></tr>
</table>





</body>
</html>

Qualcuno saprebbe dirmi perchč?
E' abbastanza urgente!!!

P.S. sto utilizzando wamp server.