<br><hr><br>
Resource: <br>
Category: <br>
URL: <br>
I honestly do not know what is wrong with my code. I am using a free web hosting server but, they do claim to support php coding. If anyone can help me out with this problem I would greatly appreciate it. Below is my php Coding. I should also mention that I am using Adobe Dreamweaver CS4 to create my website.
***I changed the name of my e-mail address for privacy purposes***
<?php
/* Subject and Email variables */
$emailSubject = 'Link For GORD!';
$webMaster = '[email protected]';
/* Gathering Data Variables */
$resourceField = $_POST['res'];
$categoryField = $_POST['cat'];
$urlField = $_POST['url'];
$body = <<<EOD
<br><hr><br>
Resource: $res <br>
Category: $cat <br>
URL: $url <br>
EOD;
$headers .= "Content=type: text/html\r\n";
$success = mail ($webMaster, $emailSubject, $body, $headers);
/* Results Rendered as HTML */
$theResults = <<<EOD
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body {
background-color: #f1f1f1;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-style: normal;
line-height: normal;
font-weight: normal;
color: #666666;
text-decoration: none;
}
-->
</style>
</head>
<div>
<div align="left">E-Mail Was Sent!</div>
</div>
</body>
</html>
EOD;
echo "$theResults";
?>