Cannot get my form to echo, spent all day on it!

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 $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:


[php]mail($to, $model, $year, $info, $image, $name, $location, $number,$email);[/php]

Check the manual for mail()

bool mail ( string $to , string $subject , string $message [, string $additional_headers [, string $additional_parameters ]] )

Can you see where you went wrong?

Sponsor our Newsletter | Privacy Policy | Terms of Service