Hitesh wrote:
>
>
> Hi friends,
>
> I am new to PHP with just one month experience. I am facing
> a problem with my feedback FORM PHP SCRIPT.
>
> =========================================================
>
> <?php
>
> $txtname = $_POST['txtname'];
>
> $txtemail = $_POST['txtemail'];
>
> $txttel = $_POST['txttel'];
>
> $txtcity = $_POST['txtcity'];
>
> $txtselect = $_POST['txtselect'];
>
> $txtcomments = $_POST['txtcomments'];
>
> $subject = $txtselect;
>
> $from = $txtname
>
> $notes = stripcslashes($notes);
>
> $message = "From: $txtname ($txtemail)\n
>
> Tel No: $txttel \n
>
> City: $txtcity \n
>
> Type: $txtselect \n
>
> Comments: $txtcomments \n";
>
> mail("[EMAIL PROTECTED] <mailto:email%40mydomain.com>", $subject,
> $message, $from);
>
> ?>
First you have your to and from backwards, secondly the 4th section of
the function is for headers, not an email address.
$headers = "From: [EMAIL PROTECTED]".
mail($to,$subject,$message,$headers);
bp