//¸ÞÀÏÇü½Ä üũ function isValidEmail(input) { var format = /^((\w|[\-\.])+)@((\w|[\-\.])+)\.([A-Za-z]+)$/; return isValidFormat(input,format); } function isValidFormat(input,format) { if (input.value.search(format) != -1) { return true; //¿Ã¹Ù¸¥ Æ÷¸Ë Çü½Ä } return false; } //form üũ function check(form) { if (document.p_Request.c_name.value == 0) { alert('ȸ»ç¸íÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä !'); p_Request.c_name.focus(); return(false); } if (document.p_Request.name.value == 0) { alert('´ã´çÀÚ À̸§À» ÀÔ·ÂÇØÁÖ¼¼¿ä !'); p_Request.name.focus(); return(false); } if (document.p_Request.c_tel.value == 0) { alert('ȸ»ç ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä !'); p_Request.c_tel.focus(); return(false); } if (document.p_Request.c_email.value == 0) { alert('´ã´çÀÚ E-mailÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä !'); p_Request.c_email.focus(); return(false); } if (!isValidEmail(p_Request.c_email)) { alert('¿Ã¹Ù¸¥ À̸ÞÀÏ ÁÖ¼Ò°¡ ¾Æ´Õ´Ï´Ù. !'); p_Request.c_email.focus(); return(false); } return(true); }
±â º» Á¤ º¸
ȸ»ç¸í * ºÎ¼­¸í
´ã´çÀÚ * ÀüÈ­¹øÈ£ *
À̸ÞÀÏ * FAX ¹øÈ£
¿ä û ³» ¿ë (¨ç°ßÀû ¿äû ÀÚ·á´Â À̸ÞÀÏ·Î ¼ÛºÎÇØ ÁÖ¼¼¿ä. dinett5527@gmail.com // order@dinett.com ¨è ºü¸¥»ó´ãÀº ÇÚµåÆù(010-3007-2564)À¸·Î ¿¬¶ôÁÖ¼¼¿ä. ¸íÇÔÀº ¹®ÀÚ·Î Àü¼Û, ¨é īī¿ÀÅå »ó´ã ID: dinett)
"); } if($mode == 'send') { //////////////////////////////////////////////////////////////////////////////////////////////// $to_adminemail ="order@dinett.com,dinett2564@naver.com"; $subject="$name ²²¼­ °³¹ß¿ë¿ª ¹®ÀǸ¦ Çϼ̽À´Ï´Ù."; /////////////////////////////////////////////////////////////////////////////////////////////// $mailheaders .= "Return-Path: $c_email\r\n"; $mailheaders .= "Reply-To: $c_email\r\n"; $mailheaders .= "From: $name <$c_email>\nContent-Type:text/html;charset=euc-kr\r"; $p_contents = nl2br($p_contents); $p_site = nl2br($p_site); //////////////////////////////////////////////////////////////// ¸ÞÀÏ·Î Àü¼ÛµÇ¾î Áö´Â html ¼Ò½º $main="
 ±âº»Á¤º¸

ȸ»ç¸í

$c_name

ºÎ¼­¸í

$p_name

ÀüÈ­¹øÈ£

$c_tel

´ã´çÀÚ À̸§

$name

´ã´çÀÚ E-mail

$c_email

Fax

$fax

 ¿äû»çÇ× (¨ç°ßÀû ¿äû ÀÚ·á´Â À̸ÞÀÏ·Î ¼ÛºÎÇØ ÁÖ¼¼¿ä. dinett5527@gmail.com // order@dinett.com ¨è ºü¸¥»ó´ãÀº ÇÚµåÆù(010-3007-2564)À¸·Î ¿¬¶ôÁÖ¼¼¿ä. ¸íÇÔÀº ¹®ÀÚ·Î Àü¼Û, ¨é īī¿ÀÅå »ó´ã ID: dinett)

³» ¿ë

$p_contents

µð³Ý¶ß(ÁÖ) ¾Ë¾ØµðÆÄÆ®³Ê

"; ///////////////////////////////////////////////////////////////////////////////////////////////// if ($Pfile and $Pfile_size) { $Pfilename = basename($Pfile_name); // $result = fopen($Pfile, "r"); // $Pfile = fread($result,$Pfile_size); // fclose($result); if (!$Pfile_type) // { $Pfile_type = "application/octet-stream"; // } $boundary = uniqid("").".koreaphp"; $mailheaders .= "MIME-Version: 1.0\r\n"; $mailheaders .= "Content-Type: multipart/mixed; boundary=\"$boundary\""; $text = "This is a multi-part message in MIME format.\r\n\r\n"; $text .= "--$boundary\r\n"; $text .= "Content-Type: text/html; charset=euc-kr\r\n"; $text .= "Content-Transfer-Encoding: 8bit\r\n\r\n"; $text .= $main. "\r\n\r\n"; $text .= "--$boundary\r\n"; $text .= "Content-Type: $Pfile_type; name=\"$Pfilename\"\r\n"; // $text .= "Content-Transfer-Encoding: base64\r\n\r\n"; $text .= ereg_replace( "(.{80})", "\\1\r\n",base64_encode($Pfile)); // mail($to_adminemail,$subject,$text,$mailheaders); } else { mail($to_adminemail,$subject,$main,$mailheaders); } /////////////////////////////////////////////////////////////////////////////////¿Ï·á ¸Þ½ÃÁö**** // echo"$to_adminemail ´Ô¿¡°Ô ¸ÞÀÏÀ» ¹ß¼ÛÇÏ¿´½À´Ï´Ù."; echo (" "); } ############################################################################################################################### ?>