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:
Here is my HTML for the text area:Code:<?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:\n Name of Parent: $p_fname $p_lname \n Email of Parent: $p_email \n Name of Student: $s_fname $s_lname \n Email of Student: $s_email \n Year: $year \n Subject: \n $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'); } ?>
What am I doing wrong?Code:<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>



Reply With Quote




Bookmarks