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=ISO-8859-1\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 ); //After email insert into database if (isset($result) && isset($result2)) { $message = "Terima kasih untuk minat anda dalam rawatan rambut 101, konsultant akan segera menghubungi anda."; }// end inner if else { $message = "Sila semak dan cuba sekali lagi."; }// end else }//end outer if //**************************************************** END Email forwarding HERE ************** ?>


    Tempahlah temujanji dengan kami hari ini
    Biarkan kami yang menyelesaikan masalah-masalah rambut anda!
    Sila penuhkan semua ruangan dengan betul bagi membolehkan
    kami memberi maklum balas kepada anda dengan segera.

    Nama :    
    Kad Pengenalan No*:  
    *Untuk warganegara Malaysia
    Jantina : Lelaki Wanita
    Tarikh lahir (dd-mm-yyyy) :
    Emel :
    Telefon :
    Masalah-masalah Rambut :
    Cawangan pilihan :
    Tarikh Pilihan (dd-mm-yyyy) :
    Waktu : (Memerlukan tempahan 3 hari lebih awal)
    Hi Saya Papelli!!!
    ".$message."
    "; } ?>