Scusa, dov'è che sbaglio? :master:
<html>
<head>
<title>Inserire i dati </title>
</head>
<body>
<h2>Inserire dati :</h2>
<form action='<?php echo $_SERVER["PHP_SELF"]; ?>' method='post'>
Autore: <input type='text' name='autorname'>
E-mail: <input type='text' name='email'>
<input type='submit' name='submit'>
</form>
</body>
</html>
<?php
// interazione con l'utente
if(isset($_POST["submit"])){
$autorname = $_POST['autorname'];
$email = $_POST["email"];
// accesso a MySQL
//--------------------------------
$db = mysql_connect("localhost", "utente", "password") or die ("Impossibile connettersi: " . mysql_error());
mysql_select_db("nomedatabase",$db);
}
?>
<?php
$add = mysql_query("INSERT INTO nometabella VALUES ('$_POST['autore']', '$_POST['email']',");
?>