Help with php file?
Hi there, I'm having some real trouble making this php file work. I'm very new to website design and would very much appreciate a helping hand.
Please see the attached php coding below.
<?php
/* Email Variables */
$emailSubject = 'contactformprocess!';
$webMaster = [email address removed by moderator];
/* Data Variables */
$email = $_POST['email'];
$name = $_POST['name'];
$comments = $_POST['comments'];
$body = <<<EOD
<br><hr><br>
Name: $name <br>
Email: " . $email . "<br>
Comments: " . $comments . "<br>
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
<html>
<head>
<title>sent message</title>
<meta http-equiv="refresh" content="3;URL=http://www.dryiceproductions.com/contact.html">
<style type="text/css">
<!--
body {
background-color: #444;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 20px;
font-style: normal;
line-height: normal;
font-weight: normal;
color: ##90C1E5;
text-decoration: none;
padding-top: 200px;
margin-left: 150px;
width: 800px;
}
-->
</style>
</head>
</body>
</html>
$theResults = "" . "" . "". "" . "" . "" . "
Your email has been sent!
" . "You will return to Dry Ice Productions Ltd in a few seconds!
" . "" . "" . "" . echo "$theResults";
?>
Open to any ideas you may have,
Many thanks.
