#########################################################
# ContactForm #
#########################################################
# #
# Created by: Doni Ronquillo #
# Modified by: CodeMunkyX #
# #
# This script and all included functions, images, #
# and documentation are copyright 2003 #
# free-php.net (http://free-php.net) unless #
# otherwise stated in the module. #
# #
# Any copying, distribution, modification with #
# intent to distribute as new code will result #
# in immediate loss of your rights to use this #
# program as well as possible legal action. #
# #
#########################################################
include('inc/config.inc');
if ($_SERVER['REQUEST_METHOD'] == "POST") {
$name = $_POST[name];
$email = $_POST[email];
$company = $_POST[company];
$phone = $_POST[phone];
$website = $_POST[website];
$msg = $_POST[msg];
$subject = $_POST[subject];
// $msg2 is set in config.inc which formats the body of the message
mail("$adminemail[$who]", "$subjectheader $subject", "$msg2", "From: $email \nReply-To: $email");
if ($redirecturl != "") {
header("Location: $redirecturl");
} else {
echo "