prova a leggere sta guida magari ti puo essere utile
http://www.allwebfree.it/php_form.php