keepingbusy
Programmer
Hi
Can someone give me any idea why variables from an enquiry form that match those in the below code are not being received in an email:
Code:
<?php
$to='ouremail@someemailaddress.com';
$subject='Online Enquiry Received';
$name=$_POST['Name'];
$email=$_POST['Email'];
$phone=$_POST['Phone'];
$message="Name: ". $name . "\r\n" . "Email: " . $email . "\r\n" . "Phone: " . $phone;
mail($to,$subject,$message);
?>
As mentioned we get the email with just the Name: Email: etc but the variables $name $ email etc are not being shown.
Any advice would be appreciated.
Thank you