ecchilo :

------------------------------------------------------------
<html>
<head>
<body>

<?php
include 'config.php';
include 'connectdb.php';
$query = "insert into contatti (nome, mail) values ('".$_POST['nome']."' , '".$_POST['mail']."')";
mysql_query($query) or die ("Errore nella query");
?>

<form method="post">
nome:

<input type=text size=40 name=nome>



mail:

<input type=text size=40 name=mail>




<input type=submit value=Invia> </form>
</body>
</head>
</html>
<?php
include 'closedb.php';
?>
--------------------------------------------------------

PS php 4.3.10