Hi All,
This site has been a God Send for me and I hope that one day I can actually help some one here.
For now though I have another quandry. I have a simple form that when I submit it it come up with the servers address in the email from column rather than the person who sent it. Is there any way around this??
Here is the form;
<?php
if(isset($Submit))
{
if($name != "" && $email != "")
{
$message = "Quote request from your site! Here is the information submitted:<br><br>
Name: $name<br>
Email: $email<br>
Location: $where<br>
Needs: $needs<br>
Phone Number: $number";
mail("curtis@trafick.net","Information Submitted on Website",$message,"Content-Type: text/html");
header("Location: thanks.htm");
}
else
{
$error = "y";
}
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body><?php
if($error == "y")
{
echo "<font color=#666666 size=2 face=Verdana, Arial, Helvetica, sans-serif>You must fill in the name and e-mail.";
exit;
}
?>
<br>
<br>
<form name="contactus" action="contactus.php" method="post">
<p align="left" class="style3 style1">Request A Quote </p>
<table width="322" border="0" cellspacing="0" cellpadding="0">
<tr align="left" valign="top">
<td width="113">Name: </td>
<td width="209"><input name="name" type="text" id="name">
<br></td>
</tr>
<tr align="left" valign="top">
<td>E-Mail Address: </td>
<td><input name="email" type="text" id="email">
<br></td>
</tr>
<tr align="left" valign="top">
<td>Location:</td>
<td><input name="where" type="text" id="where">
<br></td>
</tr>
<tr align="left" valign="top">
<td>Briefly describe what your needs are: </td>
<td><textarea name="needs" class="style10" id="needs"></textarea>
<br></td>
</tr>
<tr align="left" valign="top">
<td>Phone Number:</td>
<td><input name="number" type="text" id="number"></td>
</tr>
</table>
<blockquote>
<p align="left" class="style3"><br />
<input name="Submit" type="submit" id="Submit" value="Send" />
</p>
</blockquote>
</form>
</body>
</html>