include "require.php";
include "style.php";
if (empty($_SESSION['rand_code'])) {
$chars = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
$string = '';
for ($i = 0; $i<6; $i++) {
// this numbers refer to numbers of the ascii table (small-caps)
$string .= $chars{rand(0,strlen($chars))};
}
$_SESSION['rand_code'] = $string;
}
function Send_email ($to, $subject, $message, $from)
{
$from = $from;
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: $from \r\n\n";
mail($to, $subject, $message, $headers);
}
$to = "pandanus@pandanusbeachresort.com";
$from = @$email;
$subject = date("Y-m-d");
@$content="
Company: $company
Contacter: $contacter
Address: $address
City: $city
State: $state
Fax: $fax
Phone: $phone
Email: $email
Requirement: $content";
if(@$action == "true" && $_POST['validator'] == $_SESSION['rand_code'])
{
Send_email($to, $subject, $content, $from);
echo "\n";
unset($_SESSION['rand_code']);
}
?>
PANDANUS Beach Resort, Phan thiet resort, vietnam beach resort, vietnam best resort