errorno=".mysql_errno() ."
  • error=".mysql_error() ."
  • query=".$query); // if the query is working, get all details insert database then proceeed to email function clean_string($string) { $bad = array("content-type","bcc:","to:","cc:","href"); return str_replace($bad,"",$string); } $to = "eventroadshow@101hair.com.my,inquiry@101hair.com.my,101haircareworks@gmail.com,enquiry@101hair.com.my,jessyyong@101hair.com.my,ivyyew@101hair.com.my"; $email = $_REQUEST['email'] ; $subject = "A new 101 consultation from ". $name; $headers = "From: " . strip_tags($_POST['email']) . "\r\n"; $headers .= "Reply-To: ". strip_tags($_POST['email']) . "\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=utf-8\r\n"; $email_message = ' '; $email_message .= ''; $email_message .= ""; $email_message .= ""; $email_message .= ""; $email_message .= ""; $email_message .=""; $email_message .= ""; $email_message .= ""; $email_message .= ""; $email_message .= ""; $email_message .= ""; $email_message .= ""; $email_message .= '
    We have a new consultation please find the details below
    Name: ".clean_string($name)."
    DOB: ".clean_string($dob)."
    IC No: ".clean_string($icno)."
    Gender: ".clean_string($gender)."
    Email: ".clean_string($email)."
    Phone Number: ".clean_string($phone)."
    Hair Problem: ".clean_string($hair)."
    Outlet: ".clean_string($outlet)."
    Preferred Date: ".clean_string($date)."
    Preferred Time: ".clean_string($time)."
    ' ; // Final closing message for email $email_message .= "

    Thank you, this is auto-generated

    "; $email_message .= ''; $result = mail( $to, "Subject: $subject",$email_message, $headers ); if (isset($result) && isset($result2)) { $message = "感谢您对101 HAIRCARE 感兴趣,
    顾问将尽快与您联系。"; }// end inner if else { $message = "请检查您的详细资料,然后再试一次。"; }// end else }//end outer if //**************************************************** END Email forwarding HERE ************** ?>


    预约免费咨询
    让我们为您解决头发问题!今天就与我们预约!
    请填写以下资料以让我们可以尽快回复您。

    姓名:
    身份证号码**:
    *若是马来西亚人,请提供身份证号码
    性别 :
    生日日期 (dd-mm-yyyy) :
    电邮 :
    电话 :
    脱发问题 :
    优先分行 :
    优先时间与日期 (dd-mm-yyyy)
    时间 : (须在三天前预约)
    你好,我叫毛球仔!
    ".$message."
    "; } ?>