Superfast responses! Thanks to all!
tomtimms,
Once a user submits the form, I'd like to redirect them to the index page straight away.
I'm still doing something incorrectly. I added line 17 shown below but it doesn't redirect.
Emerson
________________________________
<?
$subject="from ".$_GET['name'];
$headers= "From: ".$_GET['email'];
$headers.=$_GET['phone']. "\n";
$headers.='Content-type: text/html; charset=iso-8859-1';
mail("myname@company.com", $subject, "
" ."Name: " .$_GET['name']."
" ."Phone: " .$_GET['phone']."
" ."Email: " .$_GET['email']."
" ."Message: " .$_GET['message']."
header('location: http://www.company.com/index.html');
</body>
</html>" , $headers);
echo ("Your message was sent!");
?>
<script>
___________________________________