if($_POST['Submit']){
$to = "webmaster@sarova.co.ke";
$email = $_POST['email'];
$headers = "From: $email\nReply-To: $email\nContent-Type: text/plain";
$msg = "";
foreach($_POST as $key=>$value){
if($key!="Submit"){
$msg.=ucfirst(str_replace("_"," ",$key))." : ".$value."\n";
}
}
//print str_replace("\n", "
", $msg);
mail($to, "Shaba Query", $msg, $headers);
}
?>
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Copyright © Sarova Hotels 2005 |