php email script - email sends but with no content ?!?!

Hello, I tried posting this the other day but cannot seem to find my post … I have used a php script from helpvid.net to ensure that the contact form on my page reaches my email. unfortunately there seems to be a slight problem, I am receiving the email but with no data in the fields? can someone please help me to figure out why this is happening as I have no php experience at all.
Ta
Kirsty

This is the code from my php file
[php]<?php

/*

  • @Web Contact Page PHP Script
  • @author [email protected] - http://www.helpvid.net
  • @version 1.0.0
  • @date January 05, 2010
  • @category Helpvid PHP Script for Contact page
  • @copyright © 2010 @helpvid.net (www.helpvid.net)
  • @Creative Commons Attribution-No Derivative Works 2.0 UK: England & Wales License.
  • @Creative Commons Attribution-No Derivative Works 2.5 UK: SCOTLAND License.
  • @Creative Commons Attribution-No Derivative Works 3.0 United States License.
    */

/* Email Variables */
$emailSubject = ‘contactf!’; /Make sure this matches the name of your file/
$webMaster = ‘[email protected]’;

/design by Mark Leroy @ http://www.helpvid.net/

/* Data Variables */
$name =$_REQUEST[‘name’];
$email =$_POST[‘email’];
$telephone =$_POST[‘telephone’];
$select =$_POST[‘select’];
$comments =$_POST[‘comments’];

$body = <<<EOD




Name: $name

Email: $email

Telephone: $telephone

Select: $select

Comments: $comments

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

/* Results rendered as HTML */
$theResults = <<<EOD

sent message
Your message has been successfully sent, speak to you soon !
EOD; echo "$theResults"; ?>[/php]

This is code from contact html file
[php]

Flutterbeeze Personalised Stationery | Contact me

Main PageServices AvailableGalleryPlease get in contact

Name

 

Email

 

Telephone Number

 

Services Required

 

Please select ... Graphic Design Bespoke Stationey Pre-designed Stationery Bunting Other

Comments

 

 

 

 

 

This website page is currently under contruction, please keep checking back.....

To get in contact please visit www.facebook.com/flutterbeeze or www.twitter.com/flutterbeeze

 

[/php]

Look in your PHP file, you’ll see this:

$email =$_POST['email'];

Now look in your HTML file, you’ll see this:

<input name="Email" type="text" id="Email" size="80" />

Why am I referring to this? Because in PHP, “Email” is NOT equal to “email”. Respect the case across your script and everything will work.

Sponsor our Newsletter | Privacy Policy | Terms of Service