You have not checked correctly:
the email field is "E Mail" in the form, "Email" in the script.
The Telephone is "Tel HP" in the form, "TelHP" in the script.
"Post Code": it exists in the form, but not in the script.
ALL variables should be the same between form and script. Copy the script from here:
<?php
// Receiving variables
@$Name = addslashes($_POST['Name']);
@$Street = addslashes($_POST['Street']);
@$City = addslashes($_POST['City']);
@$Province = addslashes($_POST['Province']);
@$PostCode = addslashes($_POST['Post Code']);
@$TelHP = addslashes($_POST['Tel HP']);
@$EMail = addslashes($_POST['E Mail']);
@$Message = addslashes($_POST['Message']);
// Validation
if (strlen($Name) == 0 )
{
header("Location: error2.htm");
exit;
}
if (strlen($Street) == 0 )
{
header("Location: error2.htm");
exit;
}
if (strlen($City) == 0 )
{
header("Location: error2.htm");
exit;
}
if (strlen($Province) == 0 )
{
header("Location: error2.htm");
exit;
}
if (strlen($TelHP) == 0 )
{
header("Location: error2.htm");
exit;
}
if (strlen($EMail) == 0 )
{
header("Location: error2.htm");
exit;
}
if (strlen($Message) == 0 )
{
header("Location: error2.htm");
exit;
}
//Sending Email to form owner
$pfw_header = "From: $EMail\n"
. "Reply-To: $EMail\n";
$pfw_subject = "Contact Us";
$pfw_email_to = "xxxx
@xxx.kom";
$pfw_message = "Name: $Name\n"
. "Street: $Street\n"
. "City: $City\n"
. "Province: $Province\n"
. "Post Code: $PostCode
. "Tel HP: $TelHP\n"
. "Email: $EMail\n"
. "Message: $Message\n";
*****($pfw_email_to, $pfw_subject ,$pfw_message ,$pfw_header ) ;
header("Location: confirmation2.htm");
?>