Codice PHP:
<html>
<body>
<form method=get action=form.php>
Nome:<input type="text" name:"nome">

Cognome:<input type="text" name:"cognome">

<input type="submit"value="invio">

</form>
</body>
</html>
Codice PHP
<?php
$mail
="**********@libero.it";
$oggetto="email";
$testo="nome: ".$_GET['nome']."Cognome: ".$_GET['cognome'];
mail($mail,$oggetto,$testo);
?>