Hi there, I’ve been following a great tutorial on youtube which has helped my understand a lot of what’s going on in PHP forms but I cannot for the life of me get it to work properly.
I’ve tested it online, it sends to my email address but it’s either completely blank or comes up with the title of a single field. I’ve tried playing around with some variations a lot so it probably makes less sense than it did before.
Can anyone help me? I’d really like to know where I’m going wrong and my brain hurts now!
[php]
<?php $to = 'MYEMAILADDRESS (Yes I know, I've taken it out)'; $subject = 'Enquiry'; $model = $_POST['model']; $year = $_POST['year']; $info = $_POST['info']; $image = $_POST['image']; $name = $_POST['name']; $location = $_POST['location']; $number = $_POST['number']; $email = $_POST['email']; $message = <<<?php echo $feedback; ?>
- System Brand / Model:
-
Year Of Manufacturer:
(If Known) - Additional Information:
- Upload an Image:
- Clinic Name:
- Location:
- Contact Number:
- Email Address:
Thanks!