Premetto che di php non ci capisco nulla, ci saranno migliaia di errori....mi aiutate a correggere questo form mail?
html
phpcodice:<form name="contatti" action="contatti/mail.php" method="post" enctype="text/plain"> <legend>Tuo nome:</legend> <input type="text" name="nome" maxlength="20" /> <legend>Tua e-mail:</legend> <input type="text" name="email_utente" /> <legend>Oggetto:</legend> <input type="text" name="oggetto" maxlength="50" /> <legend>Messaggio:</legend> <textarea cols="50" rows="10" name="messaggio"></textarea> <button type="submit">Invia</button> </form>
grazie....codice:<?php $_POST["nome"]; $_POST["email_utente"]; $_POST["messaggio"]; $a="mia email"; $oggetto=$_POST["oggetto"]; $da=$_POST["email_utente"]; $headers = "From: " . $da . "\n" . "Reply-To: <" . "$da" . ">\n" . "Return-Path: <" . $da . ">\n" . "Content-Type: text/html; charset=iso-8859-1" . "\n" . "X-Mailer: PHP/" . phpversion(5) . "\n" . "X-Sender-IP: " . getenv("REMOTE_ADDR") . "\n" . "X-Sender-Port: " . getenv("REMOTE_PORT") . "\n\n"; mail ($a,$oggetto,$testo_mail,$headers) or die("Impossibile inviare"); ?>
![]()

Rispondi quotando

