My server does support php, but I cannot get contact form to work.
Could use some help to see if any error in php code and appreciate
help in advance! Jason
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?
$name = $_REQUEST['name'] ;
$email = $_REQUEST['email'] ;
$subject = $_REQUEST['subject'] ;
$message = $_REQUEST['message'] ;
if (!isset($_REQUEST['email'])) {
header( "Location: index.htm" );
}
elseif (empty($name) || empty($email) || empty($subject) ||
empty($message)) {
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<link href="css/jace2.css" rel="stylesheet" type="text/css" />
</head>
<body>
<p class="topic">Unable to send your message!</p>
<p>One or more fields are empty and ALL fields in contact form are
required to be filled to be able to send your message </p>
<p> Click your browser's "back" button to return to the
contact form and fill all fields.</p>
</body>
</html>
<?
}
else {
mail("sc*******@jace41.com", $subject,
$message, "From: $name<$email>" );
header( "Location: contactsent.html" );
}
?>