I dont understand how come my contact page works. contact.htm and contactmail.php , and im just using the contactmai.php form as a template, just adding some fields, like budget, phone number and so on.
contactmai.php
<?php
if ($submit)
{
if (empty($name) || empty($email))
{
echo "Your name and email is required. ";
echo "Please use your browser's back button to return to the form and try again";
}
else
{
/*----- BELOW IS THE MESSAGE FORMAT -----*/
$sendto = "sales@deepintellect.com";
$subject = "Customers Question Contact Form";
//$replyto = "sales@deepintellect.com";
$message = "Form Results below from .
First Name: $name
Email: $email
Comments: $comments
"; // END MESSAGE FORMAT
mail("$sendto","$subject","$message","From:$email");
header('Location: [url]http://www.deepintellect.com/thank.htm[/url]');
die();
}
}
?>
contact.htm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Deep Intellect Designs</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<div align="center">
<table width="800" height="75%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="800" height="109" colspan="3" bgcolor="#000095"><img src="banner.gif" width="800" height="108" border="0" usemap="#Map"></td>
</tr>
<tr valign="top">
<td height="309" colspan="3" align="center" valign="top" bgcolor="#000095">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="19"> </td>
<td><font size="1"> </font></td>
</tr>
</table>
<table width="100%" height="68" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="8"> </td>
<td width="538"><p><font color="#FFFFFF" size="2" face="Lucida Console"><strong>Feel
free to contact us anytime. </strong>If you have any sort of question
we will be glad to answer it. </font></p>
<p><font color="#FFFFFF" size="2" face="Lucida Console">You can
reach us at: <strong>sales@deepintellect.com</strong></font></p>
<p><font color="#FFFFFF" size="2" face="Lucida Console">Or you may
email us directly using the form below.</font></p>
</td>
<td width="254" align="right" valign="top"><img src="contact.gif" width="227" height="56"></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
<form action="contactmail.php" method="post">
<div align="center"><br>
<table width="60%" border="0" cellpadding="0" cellspacing="0" bordercolor="#999999">
<tr>
<td width="41%" align="left"><strong><font color="#FFFFFF" size="2" face="Lucida Console">Name:
</font></strong></td>
<td width="59%"><input name="name" type="text" id="name" size="30"></td>
</tr>
<tr>
<td align="left"><strong><font color="#FFFFFF" size="2" face="Lucida Console">Email
Address: </font></strong></td>
<td><input type="text" name="email" size="30"></td>
</tr>
<tr>
<td align="left"><strong><font color="#FFFFFF" size="2" face="Lucida Console">Comments:</font></strong></td>
<td><textarea name="comments" cols="40" id="comments"></textarea></td>
</tr>
<tr>
<td><font size="2" face="Lucida Console">
<input type="submit" name="submit" value="Submit!">
</font></td>
<td> </td>
</tr>
</table>
</div>
</form></td>
</tr>
<tr valign="top">
<td height="25" colspan="3" align="center" valign="top" bgcolor="#000095"><font color="#FFFFFF" size="1" face="Lucida Console">All
logos and trademarks in this site are property of Deepintellect.com -
©2003 Deepintellect.com All Rights Reserved</font></td>
</tr>
</table>
</div>
<map name="Map">
<area shape="rect" coords="59,85,108,102" href="index.htm" target="_self">
<area shape="rect" coords="201,84,266,105" href="contact.htm" target="_self">
<area shape="rect" coords="362,85,409,103" href="rates.htm" target="_self">
<area shape="rect" coords="504,85,587,103" href="portfolio.htm" target="_self">
<area shape="rect" coords="682,86,730,104" href="about.htm" target="_self">
</map>
</body>
</html>