¼öÁ¤ üũÇØÁֽŠºÎºÐ ¼öÁ¤Çؼ Çغôµ¥¿ä.
1.sub.php¿¡¼ ³»¿ë ÀÔ·ÂÀ» ÇÏÁö ¾Ê°í ½ÅûÇϱâ¹öÆ° ´·¯µµ alertâ ¾È¶ß°í ¸ÞÀÏÀü¼ÛÀÌ ±×³É µÇ±¸¿ä.
2.email_send.php ·Î ³Ñ¾î°¡¼ ´Ù½Ã sub.php·Î ³Ñ¾î¿ÀÁö ¾Ê°í ÀÖ½À´Ï´Ù. ÆäÀÌÁö·Îµù ½Ã°£ÀÌ ´õ ±æ¾îÁ³¾î¿ä.
ÀÌ°Ç ¸¶Âù°¡Áö·Î ¾ÈµÇ°í ÀÖ°í
email_send.php¿¡¼ ÆäÀÌÁö·ÎµùÁßÀ¸·Î °è¼Ó ¶ß¸é¼ ¿Ï·á¸Þ¼¼Áö°¡ ¿À·¡ °É¸°´Ù ½Í¾ú´õ´Ï
»õ·Î¿î ¸ÞÀÏÀÌ °è¼Ó Àü¼ÛµÇ°í ÀÖ¾ú¾î¿ä. ¤Ð_¤Ð 80°³°¡ ³Ñ´Â ¸ÞÀÏÀÌ ÇѲ¨¹ø¿¡ ¿Í¹ö·È¾î¿ä.
÷ºÎÇÑ À̹ÌÁöÆÄÀÏ º¸½Ã¸é È®Àΰ¡´ÉÇϽǰſ¡¿ä. ¾î¶² »óȲÀ̾ú´ÂÁö¿ä..
¼öÁ¤ÇÑ ³»¿ë ¾Ë·Áµå¸®¸é.
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.value = 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> </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" name='as2' id='as2' onSubmit="return email_sendit(this)">
<input type="hidden" name="emailReturnUrl" value="">
//ÀÔ·ÂÆû
<input type="image" name="image" onFocus="this.blur()" src="../img/online_btn.gif" width="55" height="16">//onClick ºÎºÐ »èÁ¦Çß¾î¿ä.
email_send.php ----------------------------------------------
<?
¸ÞÀϺ¸³»´Â ¼Ò½º
echo "
<form action='$_POST[emailReturnUrl]' method='post' name='as2'>
<input type='hidden' name='emailSendChk' value='ok'>
</form>
<script>
document.as2.submit();
</script>
";
?>
--------------------ÀÌ»óÀ̱¸¿ä.
kwak17´Ô ´öºÐ¿¡ Æû¸ÞÀÏ¿¡ °ü·ÃÇؼ ¸¹ÀÌ ¹è¿ì°í ¾Ë°ÔµÆ´Âµ¥..
¿¡°í.. ´äº¯ ´Þ¾ÆÁֽŠkwak17´ÔÀ» »ý°¢Çϸé Æ÷±âÇÏ¸é ¾ÈµÇ´Â°Çµ¥..
¾Æ.. ÀÌÂë¿¡¼ ±×³É Æ÷±âÇÒ±î »ý°¢µµ µå³×¿ä.
ÇÑÆíÀ¸·Ð ³¡±îÁö ÇØ°áÇغ¼±îÇÏ´Â ¿À±â°¡ »ý±â´Â°Å °°±âµµ ÇÏ°í..
ÇÁ·Î±×·¥ °ü·Ã ¾Æ¹«°Íµµ ¸ð¸£´Â »óÅ¿¡¼ ÇÏ·Á´Ï.. ¤Ð_¤Ð;;;
¾ÆÇÏÇÏ.. ÇØ°á¸øÇÑ´ÙÇصµ ³Ê¹« °¨»çµå·Á¿ä kwak17´Ô.
ÁÁÀº Àú³á º¸³»¼¼¿ä~