Refer a Friend
  
if(!$submit){
?>
  Refer a friend to this page? Just fill the form bellow and submit 
  
  
  
}else{
$from = "$fromname <$fromemail>";
 $to = $toemail;
 $subject = "Interesting Travel Site";
 $bodyus = "Sender name :  $fromname  Mail :  $fromemail "."
";
 $bodyus .= "Receive name :  $toname Mail :  $toemail ";
 $body = "Hi $toname ... 
";
 $body .= "Your friend $fromname recently visited $url and recommend that you take a look of this page at the following address:
$url 
";
 $body .= "Your friend's message to you is:
 
 $message 
";
 $footer = "With Best regards,"." 
";
 $footer .= "Wide Discovery Travel Network Team"." 
";
 $footer .= "booking@yourrooms.com"." 
";
 $footer .= "http://www.yourrooms.com"." 
";
 $footer .= "http://www.bangkok-hotels-resorts-thailand.com"." 
";
 $footer .= "http://www.phuket-hotels-resorts-thailand.com"." 
";
 $footer .= "http://www.samui-hotels-resorts.com"." 
";
 $footer .= "http://www.krabi-hotels-thailand.com"." 
";
 $footer .= "YourRooms.com"." 
";
 $footer .= "24/126 ,Thapkasati Road,"." 
";
 $footer .= "Muang, Phuket, Thailand, 83000"." 
";
 $footer .= "Email: booking@yourrooms.com"." 
";
 $footer .= "Tel : ++ 66 76 238886"." 
";
 $footer .= "Fax : ++ 66 76 238887"." 
";
// $footer .= "Hot Line: ++ 66 1 537-5970"." 
";
 $footer .= "Phuket Office GMT+7"." 
";
 $footer .= "8.00 am - 5.00 pm ( Mon - Fri )"." 
";
 $footer .= "9.00 am - 3.00 pm. ( Sat )"." 
";
 $footer .= "============================================================================"." 
";
 $footer .= "Thank you for using YourRooms.com"." 
";
 $footer .= "Please help us to help you by recommending YourRooms.com to your friends and colleagues."." 
";
 $footer .= "============================================================================";
$datasend = ereg_replace("
","\n",$body).ereg_replace("
","\n",$footer);
$dataus = ereg_replace("
","\n",$bodyus);
$tous = "tom@yourrooms.com";
//mail($toemail, $subject, $datasend,"from:$from");
//mail($tous, $subject, $dataus,"from:$from");
echo "Refering successfull"."
";
echo "
";
}
?>
  
  
Close this window