<?  

$adminaddress = "valued.clients@gmail.com"; 
$siteaddress ="http://www.mov.com.my"; 
$sitename = "MOV Productions"; 

//No need to change anything below ... 
// Gets the date and time from your server
$date = date("m/d/Y H:i:s");

// Gets the IP Address
if ($REMOTE_ADDR == "") $ip = "no ip";
else $ip = getHostByAddr($REMOTE_ADDR);

// Gets the POST Headers - the Flash variables
$action = $HTTP_POST_VARS['action'] ;
$name = $HTTP_POST_VARS['name_'] ;
$email = $HTTP_POST_VARS['email_'] ;
$phone = $HTTP_POST_VARS['phone'] ;
$evn_type = $HTTP_POST_VARS['evn_type'] ;
$evn_date = $HTTP_POST_VARS['evn_date'] ;
$evn_loc = $HTTP_POST_VARS['evn_loc'] ;
$comments = $HTTP_POST_VARS['cmnt'] ;
$time= $HTTP_POST_VARS['time'] ;


//Process the form data!
// and send the information collected in the Flash form to Your nominated email address

if ($action == "send") {
	//
	mail ("$adminaddress","MOV Productions visitor's comment",
	"A visitor at $sitename has left the following comment\n
	Name : $name
	Email: $email
	Phone: $phone
	
	The visitor's comments:
	------------------------------
	Event Type: $evn_type
	Event Date: $evn_date
	Event Locations: $evn_loc
	Best Time To Reach Me : $time
	Comments: $comments
	------------------------------
	Date/Time:  $date","FROM:$adminaddress" ) ; 
	
	
	//Confirmation is sent back to the Flash form that the process is complete
	$sendresult = "Thank You. Your message sent.";
	$send_answer = "answer=";
	$send_answer .= rawurlencode($sendresult);
	echo $send_answer;
	
	//This sends a confirmation to your visitor
	mail ("$email","Thank You for visiting $sitename", 
	"Hi $name,\n
	Thank you for your interest in $sitename!\n
	Cheers,
	$sitename
	$siteaddress","FROM:$adminaddress") ;
} //


?>

