½ÃÀÛÆäÀÌÁö·Î Áñ°Üã±âÃß°¡
·Î±×ÀÎ
ȸ¿ø°¡ÀÔ l Ã⼮üũ l ¸¶ÀÌÆäÀÌÁö l CGIMALL
ÀÚ·á½Ç »çÀÌÆ®µî·Ï ·©Å·100 ÇÁ·Î±×·¥¸®ºä °ü¸®ÀÚÃßõÀÚ·á Ãʺ¸°¡À̵å
Ä¿¹Â´ÏƼ
Àüü ÆîÃ帱â
Äü¸Þ´º¸µÅ© jquery , CSS , PHP , Javascript , ¹«·áÆùÆ® , ASP
»ó¼¼°Ë»ö
Ȩ > Ä¿¹Â´ÏƼ > Áú¹®°ú´äº¯ »ó¼¼º¸±â
Ä¿¹Â´ÏƼ ±¸Àα¸Á÷
»çÀÌÆ®µî·Ï
Ŭ¶ó¿ìµåű×
Javascript
PHP
asp
CSS
html
mysql
jquery
image
Mobile
API
slide
°Ô½ÃÆÇ
¸Þ´º
ÇöÀçÁ¢¼ÓÀÚ ¸í »õ·Î°íħ
°Ô½ÃÆÇŸÀÌƲ Áú¹®°ú´äº¯ / »ó¼¼º¸±â
Æ®À§ÅÍ·Î º¸³»±â
Ãßõ¼ö 216 | Á¶È¸¼ö 4,070 | µî·ÏÀÏ 2007-02-23 11:35:26

´Ð³×ÀÓ

crimwafers

À̸ÞÀÏ

72kook@hanmail.net

Á¦¸ñ

[´äº¯]¼öÁ¤ Çغôµ¥¿ä
³»¿ë

¾Ë·ÁÁֽŵ¥·Î ¼öÁ¤Çߴµ¥¿ä.
Á¦·Î º¸µå ¼³Ä¡ÇÑ ÆäÀÌÁö¿¡¼­µµ ¸ÞÀÏÀº Àß ¿À°í Àִµ¥ ^^

1.sub.php¿¡¼­ ³»¿ë ÀÔ·ÂÀ» ÇÏÁö ¾Ê°í ½ÅûÇϱâ¹öÆ° ´­·¯µµ alertâ ¾È¶ß°í ¸ÞÀÏÀü¼ÛÀÌ ±×³É µÇ±¸¿ä.
2.email_send.php ·Î ³Ñ¾î°¡¼­ ´Ù½Ã sub.php·Î ³Ñ¾î¿ÀÁö ¾Ê°í ÀÖ½À´Ï´Ù.

Á¦°¡ ¾Ë·ÁÁֽŵ¥·Î Àß ¼öÁ¤Çß´ÂÁö ¸ð¸£°Ú³×¿ä.

sub.php --------------------------------------------------

<script>
 function email_sendit(frm)
 {
   if ( frm.email_name1.value == "" )
   {
      alert('¼º¸íÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.');
      frm.email_name1.focus();
      return false;
   }
   if ( frm.email_tel.value == "" )
   {
      alert('¿¬¶ôó¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.');
      frm.email_tel.focus();
      return false;
   }
   if ( frm.email_memo.value == "" )
   {
      alert('¹®Àdz»¿ëÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.');
      frm.email_memo.focus();
      return false;
   }
   else
   {
      frm.emailReturnUrl = window.location.href;
      return true;
   }

   if ( $_POST["emailSendChk"] == "ok" )
   {
      alert('Àü¼ÛÀÌ ¿Ï·áµÇ¾ú½À´Ï´Ù.');
   }
   else
   {
    <table width="166" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="../img/online_01.gif" width="166" height="51"></td>
        </tr>
        <tr>
          <td align="center" background="../img/online_bg.gif"> <table width="130" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td width="17%" height="20"><img src="../img/online_03.gif" width="44" height="12"></td>
                <td>
                  <?=$email_name1?>
                </td>
              </tr>
              <tr>
                <td height="20"><img src="../img/online_04.gif" width="44" height="12"></td>
                <td>
                  <?=$email_tel?>
                </td>
              </tr>
              <tr>
                <td height="20"><img src="../img/online_05.gif" width="44" height="12"></td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td colspan="2">
                  <?=$email_memo?>
                </td>
              </tr>
              <tr align="center">
                <td height="70" colspan="2"><img src="../img/online_06.gif" width="122" height="55"></td>
              </tr>
            </table></td>
        </tr>
        <tr>
          <td><img src="../img/online_02.gif" width="166" height="8"></td>
        </tr>
      </table>
   }
 }
</script>

<form action="/include/email_send.php" method="post" onSubmit="return email_sendit(this)">
 <input type="hidden" name="emailReturnUrl" value="">
//ÀÔ·ÂÆû
<input type="image" name="image" onFocus="this.blur()" onClick="email_sendit(this.form)" src="../img/online_btn.gif" width="55" height="16">//À̹ÌÁö·Î ³Ö°í ½Í¾î¼­ ÀÌ·¸°Ô ÇغýÀ´Ï´Ù.

 

email_send.php ----------------------------------------------
´Ù¸¥ ű״ ´Ù Áö¿ì°í ¾Æ·¡¼Ò½º ³Ö¾ú½À´Ï´Ù.

<?
¸ÞÀϺ¸³»´Â ¼Ò½º

echo "
 <form action='$_POST[emailReturnUrl]' method='post'>
   <input type='hidden' name='emailSendChk' value='ok'>
 </form>
 <script>
   document.fomrs[0].submit();
 </script>
";
?>

 

===================== ÀÌ»óÀ̱¸¿ä.

sub.php ÀÎŬ·çµå µÇ´Â °÷¿¡ <?php include"include/sub.php"; ?>ÀÌ·¸°Ô ³Ö¾ú½À´Ï´Ù.
¾îµð¼­ À߸ø Àû¿ë½ÃŲ°Ç°¡¿ä?? ´Ù½ÃÇѹø ºÎŹµå¸³´Ï´Ù.

¾Æ, Å×½ºÆ®ÆäÀÌÁö´Â
http://www.surysury.com/index.html
http://www.surysury.com/bbs/zboard.php?id=shop
ÀÔ´Ï´Ù.

Ãßõ½ºÅ©·¦¼Ò½ºº¸±â ¸ñ·Ï
°Ë¹«Ç÷½Å 2007-02-23 16:55:07
´ä±Û

<input type="image" ºÎºÐ¿¡ onClick="email_sendit(this.form)" ÀÌ°Ç »©ÁÖ½Ã¸é µË´Ï´Ù.. type="image" ´Â submit°ú µ¿ÀÏÇÑ ±â´ÉÀ» ÇÑ´ä´Ï´Ù

°Ë¹«Ç÷½Å 2007-02-23 16:56:42
´ä±Û

¸ÞÀÏ º¸³»´Â ¼Ò½º¿¡¼­´Â <form¿¡ nameÀ» Áֽñ¸¿ä ±×¾Æ·¡ script¿¡¼­
document.formÀ̸§.submit(); À¸·Î ¹Ù²ã¼­ Çغ¸¼¼¿ä.

°Ë¹«Ç÷½Å 2007-02-23 16:57:11
´ä±Û

±×¸®°í sub.php »ó´Ü ½ºÅ©¸³Æ® ºÎºÐ¿¡..
frm.emailReturnUrl = window.location.href;
À̺κÐÀ»
frm.emailReturnUrl.value = window.location.href;
À¸·Î º¯°æÇØÁֽñ¸¿ä.

crimwafers 2007-02-23 17:02:45
´ä±Û

³×! Çغ¼²²¿ä!!!

ÀÌÀü°Ô½Ã±Û ÀÌ·±½ÄÀ¸·Î ÀÛµ¿ÇÏ´Â ¼Ò½º¸¦ ±¸Çϴµ¥¿ä.. 2007-02-22 16:10:25
´ÙÀ½°Ô½Ã±Û Á¦¹ß °í¼ö´Ôµé ¹«·áµµ¸ÞÀμ³Ä¡ÇØ°áÁ»! 2007-02-24 22:56:43