½ÃÀÛÆäÀÌÁö·Î Áñ°Üã±âÃß°¡
·Î±×ÀÎ
ȸ¿ø°¡ÀÔ l Ã⼮üũ l ¸¶ÀÌÆäÀÌÁö l CGIMALL
ÀÚ·á½Ç »çÀÌÆ®µî·Ï ·©Å·100 ÇÁ·Î±×·¥¸®ºä °ü¸®ÀÚÃßõÀÚ·á Ãʺ¸°¡À̵å
Ä¿¹Â´ÏƼ
Àüü ÆîÃ帱â
Äü¸Þ´º¸µÅ© jquery , CSS , PHP , Javascript , ¹«·áÆùÆ® , ASP
»ó¼¼°Ë»ö
Ȩ > Ä¿¹Â´ÏƼ > Áú¹®°ú´äº¯ »ó¼¼º¸±â
Ä¿¹Â´ÏƼ ±¸Àα¸Á÷
»çÀÌÆ®µî·Ï
Ŭ¶ó¿ìµåű×
Javascript
PHP
HTML
ASP
mysql
css
Mobile
jquery
image
slide
�޴�
������Ʈ
¸Þ´º
ÇöÀçÁ¢¼ÓÀÚ ¸í »õ·Î°íħ
°Ô½ÃÆÇŸÀÌƲ Áú¹®°ú´äº¯ / »ó¼¼º¸±â
Æ®À§ÅÍ·Î º¸³»±â
Ãßõ¼ö 144 | Á¶È¸¼ö 2,102 | µî·ÏÀÏ 2005-02-22 12:38:06

´Ð³×ÀÓ

kks2281

À̸ÞÀÏ

kks2281@hanmail.net

Á¦¸ñ

[Áú¹®] Æû¸ÞÀÏ ¼öÁ¤ Á» µµ¿ÍÁÖ¼¼¿ä
³»¿ë

ÆÄÀÏ÷ºÎ Æû¸ÞÀÏÀÔ´Ï´Ù. Á¦°¡ ±âº»ÀûÀÎ ÆÄÀÏ÷ºÎ Æû¸ÞÀÏ¿¡ ȸ»ç¸í, ¿¬¶ôó, À̸ÞÀÏ, ȨÆäÀÌÁö¸¦ Ãß°¡ÇÏ¿´½À´Ï´Ù.

±Ùµ¥ ¸ÞÀÏÀ» º¸³»¸é Ãß°¡ÇÑ ºÎºÐÀÇ ³»¿ëµµ °°ÀÌ º¸³»Áú ¼ö ÀÖµµ·Ï ¼öÁ¤Á» µµ¿ÍÁÖ¼ÌÀ¸¸é ÇÕ´Ï´Ù.

php¿¡ Àß ¸ô¶ó¼­ ¼öÁ¤ÇغÁµµ ÀÚ²Ù ¿¡·¯°¡ »ý±â³×¿ä...

ºÎŹµå¸³´Ï´Ù.

 

 

<html>
<head>
<title>php3·Î ±¸ÇöÇÑ À¥¸ÞÀÏ</title>
<meta http-equiv='Content-Type' content='text/html; charset=euc-kr'>
<STYLE TYPE="text/css">
<!--
 A:link {text-decoration:none; color:darkblue}
 A:visited{text-decoration:none; color:663399}
 A:hover {text-decoration:none; color:red}
 A:active {text-decoration:none; color:red}
 TD {font-size:9pt}
-->
</STYLE>
</head>

<body bgcolor='#FFFFFF'>

<?

//==================
// ¸ÞÀÏ º¸³»±â
//==================

if($mode=='mailsend')
{
 if(!$company)
    {   echo(" <script>
                  window.alert('ȸ»ç¸íÀ» ÀÔ·ÂÇÏ¼Å¾ß ¸ÞÀÏÀ» º¸³»½Ç ¼ö°¡ ÀÖ½À´Ï´Ù.')
                  history.go(-1)
                 </script>
               "); exit;
    }


 if(!$subject)
    {   echo(" <script>
                  window.alert('Á¦ÈÞÁ¦¸ñÀ» ÀÔ·ÂÇÏ¼Å¾ß ¸ÞÀÏÀ» º¸³»½Ç ¼ö°¡ ÀÖ½À´Ï´Ù.')
                  history.go(-1)
                 </script>
               "); exit;
    }

 if(!$tel)
    {   echo(" <script>
                  window.alert('¿¬¶ôó¸¦ ÀÔ·ÂÇÏ¼Å¾ß ¸ÞÀÏÀ» º¸³»½Ç ¼ö°¡ ÀÖ½À´Ï´Ù.')
                  history.go(-1)
                 </script>
               "); exit;
    }

 if(!$from)
    {   echo(" <script>
                  window.alert('º¸³»½Ã´Â ºÐÀÇ ¸ÞÀÏ°èÁ¤À» ÀÔ·ÂÇÏ¼Å¾ß ¸ÞÀÏÀ» º¸³»½Ç ¼ö°¡ ÀÖ½À´Ï´Ù.')
                  history.go(-1)
                 </script>
               "); exit;
    }

 

//echo(" $userfile  $userfile_size ");

//       $body = stripslashes($body);
//       $mailheaders .= "To: " . $to . "\r\n";
//       $mailheaders .= "Subject: " . $subject . "\r\n";
       $mailheaders .= "Return-Path: $from\r\n";
       $mailheaders .= "From: $rn <$from>\r\n";
       $mailheaders .= "X-Mailer: Gfew Interface\r\n";
//       $mailheaders .= "Reply-To: $from \r\n";

       if ($userfile && $userfile_size) {

          $filename=basename($userfile_name);
          $result=fopen($userfile,"r");
          $file=fread($result,$userfile_size);
          fclose($result);

          if ($userfile_type == "")
      {
             $userfile_type = "application/octet-stream";
             }

          $boundary = "--------" . uniqid("part");

          $mailheaders .= "MIME-Version: 1.0\r\n";
          $mailheaders .= "Content-Type: multipart/mixed; boundary=\"$boundary\"";

          $bodytext  = "This is a multi-part message in MIME format.\r\n\r\n";
          $bodytext .= "--$boundary\r\n";

          $bodytext .= "Content-Type: text/html; charset=euc-kr\r\n";
          $bodytext .= "Content-Transfer-Encoding: 8bit\r\n\r\n";

//          $bodytext .= "Content-Type: text/plain; charset=euc-kr\r\n";
//          $bodytext .= "Content-Transfer-Encoding: 8bit\r\n\r\n";
//          $bodytext .= "Content-Type: text/plain; charset=us-ascii\r\n";
//          $bodytext .= "Content-Transfer-Encoding: 7bit\r\n\r\n";
          $bodytext .= nl2br(stripslashes($body)) . "\r\n\r\n";
          $bodytext .= "--$boundary\r\n";
          $bodytext .= "Content-Type: $userfile_type; name=\"$filename\"\r\n";
          $bodytext .= "Content-Transfer-Encoding: base64\r\n\r\n";
          $bodytext .= ereg_replace("(.{80})","\\1\r\n",base64_encode($file));
          $bodytext .= "\r\n--$boundary" . "\r\n";
       }
       else {
          $bodytext  = stripslashes($body);
       }

 


  mail("ozpc@ozpc.co.kr",$subject, $bodytext,$mailheaders);

       echo(" <meta http-equiv='Refresh' content='0; URL=./mailsuccess.php3'>");
       exit;

//echo("$Ext , $bodytext");
//       #778899 #e0e0e0

}


echo("


<form enctype='multipart/form-data' method='post' action='$PHP_SELF?mode=mailsend'>
  <table border=0 cellspacing=1 align='center' cellpadding='1' bgcolor='#6B7BAD'>

    <tr>
      <td align=center bgcolor='#6B7BAD' nowrap> <font color='#ffffff'>
        ȸ»ç¸í </font> </td>
      <td bgcolor='ghostwhite'> <font color='#000000' size=-1>
        <input name=company size=68 value=''>
        </font> </td>
    </tr>


    <tr>
      <td align=center bgcolor='#6B7BAD' nowrap> <font color='#ffffff'>
        Á¦ÈÞÁ¦¸ñ </font> </td>
      <td bgcolor='ghostwhite'> <font color='#000000' size=-1>
        <input name=subject size=68 value=''>
        </font> </td>
    </tr>


  <tr>
      <td align=center bgcolor='#6B7BAD' nowrap> <font color='#ffffff'>
        ¿¬¶ôó </font> </td>
      <td bgcolor='ghostwhite'> <font color='#000000' size=-1>
        <input name=tel size=68 value=''>
        </font> </td>
    </tr>

      <tr>
      <td align=center bgcolor='#6B7BAD' nowrap> <font color='#ffffff'>
        ´ã´çÀÚ e-mail </font> </td>
      <td bgcolor='ghostwhite'> <font color='#000000' size=-1>
        <input name=from size=68 value=''>
        </font> </td>
    </tr>

 <tr>
      <td align=center bgcolor='#6B7BAD' nowrap> <font color='#ffffff'>
        ȸ»çȨÆäÀÌÁö </font> </td>
      <td bgcolor='ghostwhite'> <font color='#000000' size=-1>
        <input name=home size=68 value=''>
        </font> </td>
    </tr>

 

    <tr>
      <td align=center bgcolor='#6B7BAD' nowrap> <font color='#ffffff'>
        Àü¼ÛÇÒ ÆÄÀÏ </font> </td>
      <td bgcolor='ghostwhite'> <font color='#000000' size=-1>
        <input type=file name=userfile size=53 value=''>
        </font> </td>
    </tr>
    <tr>
      <td colspan=2 bgcolor='ghostwhite'>
        <textarea name=body cols=78 rows=10 wrap=hard></textarea>
      </td>
    </tr>
    <tr>
      <td colspan=2 bgcolor='ghostwhite'>
        <div align='center'><font size=-1>
          <input type=submit name=action value='¸ÞÀÏÀü¼ÛÇϱâ'>
          <input type='reset' name='Reset' value='Ãë¼ÒÇϱâ'>
          &nbsp;</font> </div>
      </td>
    </tr>
  </table>
  </form>

 


");
?>

</body>
</html>

Ãßõ½ºÅ©·¦¼Ò½ºº¸±â ¸ñ·Ï
HappyCGI 2005-02-23 12:51:50
´ä±Û

CGI ÀÔ´Ï´Ù.
¼Ò½º¼öÁçÇ׿¡ ´ëÇؼ­´Â ÀúÈñ°¡ Áö¿øÇص帮Áö ¾Ê½À´Ï´Ù.
Á˼ÛÇÕ´Ï´Ù.

ÀÌÀü°Ô½Ã±Û (±ÞÇØ¿ä) xpÀÇ iis¼­¹ö¿¡¼­ cgiµð·ºÅ丮°æ·Î ¼³Á¤¿¡ ´ëÇؼ­ - 2005-02-21 17:37:23
´ÙÀ½°Ô½Ã±Û [Áú¹®]3°³ °Ô½ÃÆÇ ÅëÇÕ ÀÎÁõ°ü·Ã 2005-02-23 14:26:50