My php variables don't work in email

Hello there,
I can use some help.

I made a form in my html. Then I made some php to send the information to my emailaddress.
But everything is send, except my variables. The $name variable is not in the email when you send it.
What did I do wrong?

I’m Dutch so some variables are Dutch.
[b]<?php

$emailSubject = 'Contactformulier my site';
$webMaster = 'my email';

$nameField = $_POST ['name'];
$addressField = $_POST ['adres'];
$zipcodeField = $_POST ['postcode'];
$placeField = $_POST ['plaats'];
$emailField = $_POST ['email'];
$phoneField = $_POST ['telefoon'];
$commentsField = $_POST ['message'];

$body = <<<EOD





Naam: $name

Adres: $adres

Postcode: $postcode

Woonplaats: $plaats

Email: $email

Telefoon: $telefoon

Bericht: $message

EOD;
$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body, $headers);

?>[/b]

none of those variables in your email match up with what you have defined above it.

Sponsor our Newsletter | Privacy Policy | Terms of Service