<?php

$func = $_POST['func'];

if(isset($func)){

$name = $_POST['name'];
$contact=$_POST['contact'];
$email=$_POST['email'];
$comments=$_POST['comments'];

// Validation
$msg = "Name: $name
Contact: $contact 
Email: $email 
Comments: $comments";

//echo $msg;



$r = 1;
$name_error=0;
$comments_error=0;
$email_error=0;

if($name==""){
  $err_name="<font color=red><font size=2>(required)</font></font>";
  $r=0;
  $name_error=1;
}


if($comments==""){
  $err_comments="<font color=red><font size=2>(required)</font></font>";
  $r=0;
  $comments_error=1;
}

if($email==""){
  $err_email="<font color=red><font size=2>(required)</font></font>";
  $r=0;
  $email_error=1;
} else if(!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email)) {  
    $err_email ="<font color=red><font size=2>(not valid)</font></font>"; 
    $r=0;
	$email_error=1;
}


if($r==1){

$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

// Additional headers
//$headers .= 'To: $emailadd' . "\r\n";
$headers .= 'From: $email' . "\r\n";
//change email here
$adminmail = "enquiry@elkanah.com.my";

mail($adminmail,"End User Feedback From elkanah.com.my",$msg,"From:".$email);
die("<script>document.location.href='sent.html'</script>");
}

}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>EL'Kanah International</title>

<link href="css/main.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style1 {
	color: #FF6600;
	font-weight: bold;
	font-size: 16px;
}

-->
</style>
</head>

<body>
<table width="565" height="249" border="0" align="center" cellpadding="20" cellspacing="0" class="border">
  <tr>
    <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><p>
          <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="846" height="85">
            <param name="movie" value="flash/flashheader.swf" />
            <param name="quality" value="high" />
            <embed src="flash/flashheader.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="846" height="85"></embed>
          </object>
        </p>          </td>
      </tr>
      <tr>
        <td height="15">&nbsp;</td>
      </tr>
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="100"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="229" height="314">
              <param name="movie" value="flash/flashmenu.swf" />
              <param name="quality" value="high" />
              <embed src="flash/flashmenu.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="229" height="314"></embed>
            </object></td>
            <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="617" height="314">
              <param name="movie" value="flash/flashbanner.swf" />
              <param name="quality" value="high" />
              <embed src="flash/flashbanner.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="617" height="314"></embed>
            </object></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td height="15">&nbsp;</td>
      </tr>
      <tr>
        <td height="300" valign="top"><table width="100%" height="200" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="100%" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="17" bgcolor="#FFD799"><img src="images/bigcon_r1_c1.jpg" width="17" height="15" /></td>
                <td width="100%" bgcolor="#FFD799">&nbsp;</td>
                <td width="17" bgcolor="#FFD799"><div align="right"><img src="images/bigcon_r1_c16.jpg" width="17" height="15" /></div></td>
              </tr>
              <tr>
                <td height="57" bgcolor="#FFD799">&nbsp;</td>
                <td valign="top" bgcolor="#FFD799"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="2%" valign="top" bgcolor="#FFE8BF"><img src="images/midcon_r1_c1.jpg" width="13" height="13" /></td>
                    <td width="100%" valign="top" bgcolor="#FFE8BF">&nbsp;</td>
                    <td width="2%" valign="top" bgcolor="#FFE8BF"><div align="right"><img src="images/midcon_r1_c13.jpg" width="13" height="13" /></div></td>
                  </tr>
                  <tr>
                    <td height="70" valign="top" bgcolor="#FFE8BF">&nbsp;</td>
                    <td valign="top" bgcolor="#FFE8BF"><table width="100%" border="0" cellspacing="2" cellpadding="0">
                      <tr>
                        <td><p class="mainText"><strong>If you&rsquo;re interested to know more about what we mean  by &lsquo;Total Client Delight&rsquo;, please contact us.</strong></p>
                          <p>&nbsp;</p>
                          <p class="style1"><strong>Contact Details :-</strong></p>
                          <p class="style1">&nbsp;</p>
                          <p class="mainText">EL&rsquo;Kanah Furniture<br />
                            Lot 1271, Kawasan Perindustrian Ringan, Kampung Baru,  Ampang Tambahan, 68000 
                            Ampang, Selangor Darul Ehsan, West Malaysia.</p>
                          <p>&nbsp;</p>
                          <table width="241" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td class="mainText">Tel&nbsp;</td>
                              <td class="mainText">+603-4297 5317</td>
                            </tr>
                            <tr>
                              <td class="mainText">Fax</td>
                              <td class="mainText">+603-4294  1168</td>
                            </tr>
                            <tr>
                              <td class="mainText">Email</td>
                              <td class="mainText"><a href="mailto:enquiry@elkanah.com.my">enquiry@elkanah.com.my</a></td>
                            </tr>
                            <tr>
                              <td class="mainText">Web</td>
                              <td class="mainText"><a href="http://www.elkanah.com.my">http://www.elkanah.com.my</a></td>
                            </tr>
                          </table>
                          <p>&nbsp;</p>
                          <p class="mainText">&nbsp;</p>
                          <p class="style1"><strong>Contact Form :-</strong></p>
                          <p class="style1">&nbsp;</p>
                          <table width="100%" border="0" cellspacing="0" cellpadding="3">
                            <form action="contact.php" method="post" name="elkanah">
						<input type=hidden name=func value="">
                            <tr>
                              <td width="20%"><span class="mainText1">Name</span></td>
                              <td width="80%"><input name="name" type="text" class="TextField" size="50" value="<?php echo $name; ?>" /><?php if($name_error == '1') "<br />".$err_name."<br />"; ?></td>
                            </tr>
                            <tr>
                              <td class="mainText1">Contact</td>
                              <td><input name="contact" type="text" class="TextField" size="50" value="<?php echo $name; ?>" /></td>
                            </tr>
                            <tr>
                              <td class="mainText1">Email</td>
                              <td><input name="email" type="text" class="TextField" size="50" value="<?php echo $name; ?>" /><?php if($email_error == '1') echo "<br />".$err_email."<br />"; ?></td>
                            </tr>
                            <tr>
                              <td height="72" class="mainText1">Comments</td>
                              <td><span class="style4">
                                <textarea name="comments" cols="50" rows="6" class="TextField"><?php echo $comments; ?></textarea><?php if($comments_error == '1') echo "<br />".$err_comments."<br />"; ?></span></td>
                            </tr>
                            <tr>
                              <td height="42">&nbsp;</td>
                              <td><input name="Reset" type="reset" class="TextField" value="Reset" />
                                  <input name="Submit2" type="submit" class="TextField" value="Submit" /></td>
                            </tr></form>
                          </table></td>
                      </tr>
                      <tr>
                        <td height="52">&nbsp;</td>
                      </tr>
                    </table></td>
                    <td valign="top" bgcolor="#FFE8BF">&nbsp;</td>
                  </tr>
                  <tr>
                    <td valign="top" bgcolor="#FFE8BF"><img src="images/midcon_r9_c1.jpg" width="13" height="13" /></td>
                    <td valign="top" bgcolor="#FFE8BF"></td>
                    <td valign="top" bgcolor="#FFE8BF"><div align="right"><img src="images/midcon_r9_c13.jpg" width="13" height="13" /></div></td>
                  </tr>
                </table>
                  <p>&nbsp;</p>
                  </td>
                <td bgcolor="#FFD799">&nbsp;</td>
              </tr>
              <tr>
                <td bgcolor="#FFD799"><img src="images/bigcon_r18_c1.jpg" width="17" height="15" /></td>
                <td bgcolor="#FFD799">&nbsp;</td>
                <td bgcolor="#FFD799"><div align="right"><img src="images/bigcon_r18_c16.jpg" width="17" height="15" /></div></td>
              </tr>
            </table></td>
            <td width="2%" valign="top"><img src="images/blank.gif" width="15" height="9" /></td>
            <td width="50%" valign="top"><table width="1%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><img src="images/rightnav_r1_c1.jpg" width="312" height="34" /></td>
              </tr>
              <tr>
                <td height="94" valign="top"><p>&nbsp;</p>
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td colspan="2"><table width="100%" border="0" cellspacing="2" cellpadding="2">
                      <tr>
                        <td width="42%" rowspan="2"><img src="images/rightnav_r5_c2.jpg" width="123" height="92" hspace="2" vspace="2" /></td>
                        <td width="58%" height="72" valign="top"><p align="justify" class="LeftNavTitle">Chow Tai Fook </p>
                          <p align="justify" class="LeftNavText">Chow Tai Fook Fine Jewellery was founded in Guangzhou, China, in 1929 and was subsequently moved to Macau...</p></td>
                      </tr>
                      <tr>
                        <td valign="top"><div align="justify"><a href="chowtaifook.html" class="FastLink">+ More</a> </div></td>
                      </tr>
                    </table></td>
                    </tr>
                  
                  <tr>
                    <td colspan="2"><img src="images/hrlines.jpg" width="312" height="3" vspace="8" /></td>
                    </tr>
                </table>
                  <p>&nbsp;</p>
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td colspan="2"><table width="100%" border="0" cellspacing="2" cellpadding="2">
                          <tr>
                            <td width="42%" rowspan="2"><img src="images/rightnav_r7_c2.jpg" width="123" height="93" hspace="2" vspace="2" /></td>
                            <td width="58%" height="72" valign="top"><p align="justify" class="LeftNavTitle">Istana Raja Dihilir Perak </p>
                                <p align="justify" class="LeftNavText">The Istana Raja DiHilir reflects distinctively elegant designs that are uncompromising...</p></td>
                          </tr>
                          <tr>
                            <td valign="top"><div align="justify"><a href="istana.html" class="FastLink">+ More</a> </div></td>
                          </tr>
                      </table></td>
                    </tr>
                    <tr>
                      <td colspan="2"><img src="images/hrlines.jpg" width="312" height="3" vspace="8" /></td>
                    </tr>
                  </table>
                  <p>&nbsp;</p>
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td colspan="2"><table width="100%" border="0" cellspacing="2" cellpadding="2">
                          <tr>
                            <td width="42%" rowspan="2"><img src="images/rightnav_r13_c2.jpg" width="123" height="93" hspace="2" vspace="2" /></td>
                            <td width="58%" height="72" valign="top"><p align="justify" class="LeftNavTitle">Somerset Bay</p>
                                <p align="justify" class="LeftNavText">Escape to Somerset Bay&hellip;and you enter into a realm where a coastal palette seduces your senses...</p></td>
                          </tr>
                          <tr>
                            <td valign="top"><div align="justify"><a href="somerset.html" class="FastLink">+ More</a> </div></td>
                          </tr>
                      </table></td>
                    </tr>
                    <tr>
                      <td colspan="2"><img src="images/hrlines.jpg" width="312" height="3" vspace="8" /></td>
                    </tr>
                  </table>
                  <p>&nbsp;</p>
				  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td colspan="2"><table width="100%" border="0" cellspacing="2" cellpadding="2">
                          <tr>
                            <td width="42%" rowspan="2"><img src="images/primaya_3.jpg" width="124" height="93" hspace="2" vspace="2" /></td>
                            <td width="58%" height="72" valign="top"><p align="justify" class="LeftNavTitle">Primaya Show Unit </p>
                                <p align="justify" class="LeftNavText">A spacious community living concept, which articulates interior beauty with
style and grace... </p></td>
                          </tr>
                          <tr>
                            <td valign="top"><div align="justify"><a href="primaya.html" class="FastLink">+ More</a> </div></td>
                          </tr>
                      </table></td>
                    </tr>
                    <tr>
                      <td colspan="2"><img src="images/hrlines.jpg" width="312" height="3" vspace="8" /></td>
                    </tr>
                  </table>
                  </td>
              </tr>
              <tr>
                <td><img src="images/rightnav_r17_c1.jpg" width="312" height="34" /></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
<p>&nbsp;</p>
<table width="839" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td class="footertextWhite">EL'Kanah International Sdn. Bhd.</td>
    <td>&nbsp;</td>
    <td><div align="right" class="footertextWhite">Powered by : <a href="http://www.acrogain.com">Acrogain Sdn. Bhd.</a></div></td>
  </tr>
</table>
<p>&nbsp;</p>
</body>
</html>
