Hi,
I would like the FROM header to contain the value of $email which is a text box from a form. Im not sure how to format the 5th line of code. Ive been getting all kinds of errors trying to figure this out.
Thanks for the help.
$email = $_REQUEST['txtemail'];
$to2 = "eric@mot.cc";
$subject = "HELLO
$message2 = 'TEST';
$headers2 = "From: $_REQUEST['txtname']";
mail($to2, $subject2, $message2, $headers2);
I would like the FROM header to contain the value of $email which is a text box from a form. Im not sure how to format the 5th line of code. Ive been getting all kinds of errors trying to figure this out.
Thanks for the help.
$email = $_REQUEST['txtemail'];
$to2 = "eric@mot.cc";
$subject = "HELLO
$message2 = 'TEST';
$headers2 = "From: $_REQUEST['txtname']";
mail($to2, $subject2, $message2, $headers2);