I have a contact form that when hit submits it goes to my email. I’ve gotten every input to come across email except for the textarea box?
Here is my PHP:
<?php
$errors = '';
$myemail = 'baderup99@aol.com';//<-----Put Your email address here.
if( empty($errors))
{
$to = $myemail;
$email_subject = "Registration submission from FacetoFaceTutoring: $name";
$email_body = "You have received a new registration. ".
" Here are the details:\
Name of Parent: $p_fname $p_lname \
Email of Parent: $p_email \
Name of Student: $s_fname $s_lname \
Email of Student: $s_email \
Year: $year \
Subject: \
$subject";
$headers = "From: $myemail";
$headers .= "Reply-To: $p_email";
mail($to,$email_subject,$email_body,$headers);
//redirect to the 'thank you' page
header('Location: contact-form-thank-you.html');
}
?>
Here is my HTML for the text area:
<label for="subject" class="fixed">Subject(s) student<br/> needs help in:<span class="red">*</span></label>
<textarea class="subject_text" cols="25" rows="5" id="subject" name="subject"></textarea>
What am I doing wrong?