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
This is code from contact html file
[php]
Name
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]