io scopiazzando qua e là sono arrivata a questo:
<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"];
echo ("Salve $autorname la tua e-mail è $email");
}
?>
ma vorrei che l'autore e l'email finissero nel database e non in calce alla pagina![]()