Æû¸ÞÀÏ °ø°³¿ëÀ» ´Ù¿î ¹Þ¾Æ¼ ÀÀ¿ëÇؼ ½è´Âµ¥¿ä.
¿Ï·á¹öÆ° ´©¸¥ ÈÄ¿¡ ³Ñ¾î°¡´Â ÆäÀÌÁö°¡ ±úÁ®¼¿ä.
À̹æ¹ý Àú¹æ¹ý Çغôµ¥ µµÀúÈ÷ ¸ð¸£°Ú³×¿ä.
1. Ç׸ñ ÀԷ½ÿ¡ ½Åû¿Ï·á¹öÆ° ´©¸£¸é ´Ù¸¥ÆäÀÌÁö·Î À̵¿ÇÏÁö¾Ê°í
ÀÔ·ÂÆäÀÌÁö¿¡¼ Æ˾÷À¸·Î °æ°íâ ¶ß°Ô ÇÒ¼ö ÀÖ´Â ¹æ¹ýÀº ¹º°¡¿ä?
2. Áö±Ý »óÅ¿¡¼´Â sendmail.php·Î ³Ñ¾î°¡°Ô µÇ¾î Àִµ¥ Å×ÀÌºí ±úÁöÁö ¾Ê°í
Á¦´ë·Î »Ñ·ÁÁú ¼ö ÀÖ´Â ¹æ¹ýÀº ¾î¶»°Ô ÇϸéµÇ³ª¿ä?
Á¦´ë·Î ¼³¸íÀÌ µÇ¾ú´ÂÁö ¸ð¸£°Ú³×¿ä. ½Åû¿Ï·á Çѹø Çغ¸½Ã¸é Á¦ ¸»¾¸ÀÌ ÀÌÇØ°¡ µÇ½Ã¸®¶ó »ý°¢ÇÕ´Ï´Ù.
ÇØ°á ¹æ¹ý Á» ¾Ë·ÁÁÖ¼¼¿ä.
¼Ò½º¸¦ ¾îµð¼ºÎÅÍ ¾îµð±îÁö À߶ó¾ßÇÒÁö ¸ô¶ó¼ ¸¹ÀÌ ±æ¾îÁ³½À´Ï´Ù.
¾çÇعٶø´Ï´Ù.
Âü°íÇÏ½Ç »çÀÌÆ®´Â
½ÅûÆû url ÁÖ¼Ò¿Í ¼Ò½º-------------------------------------------------------------------
http://www.surysury.com/as.php
<?
$_zb_url = "http://www.surysury.com/bbs/";
$_zb_path = "/www/surysury/bbs/";
include $_zb_path."outlogin.php";
?>
<html>
<head>
<title>:::¼ö¸®¼ö¸®´åÄÄ::: ¢Ï1600-0234</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<link href="css/text.css" rel="stylesheet" type="text/css">
<script src="include/iezn_embed_patch.js" type="text/javascript"></script>
<script language="JavaScript">
<!--
function bluring(){
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
}
document.onfocusin=bluring;
// -->
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><a name=top></a>
<td>
<?php include"include/top.php"; ?>
</td>
</tr>
<tr>
<td>
<?php include"include/main_flash.php"; ?>
</td>
</tr>
<tr>
<td bgcolor="EFF1F1"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="200" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="25"> </td>
</tr>
<tr>
<td><img src="img/sub_topbar.gif" width="200" height="30"></td>
</tr>
<tr>
<td><img src="img/subtitle_as.gif" width="200" height="40"></td>
</tr>
<tr>
<td background="img/sub_bg.gif"> </td>
</tr>
<tr>
<td background="img/sub_bg.gif"><a href="as.php"><img src="img/sub_as01.gif" width="88" height="15" border="0"></a></td>
</tr>
<tr>
<td><img src="img/sub_dotbar.gif" width="200" height="15"></td>
</tr>
<tr>
<td><img src="img/sub_lowbar.gif" width="200" height="63"></td>
</tr>
<tr>
<td>
<?php
if($mode=='email') include"include/email.php";
else include"include/sub.php";
?>
</td>
</tr>
</table></td>
<td width="720" rowspan="2" valign="top"><table width="710" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="25"> </td>
</tr>
<tr>
<td><img src="img/center_topbar.gif" width="710" height="30"></td>
</tr>
<tr>
<td align="center" background="img/center_bg.gif"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="img/title_as.gif" width="627" height="40"></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td align="center"><img src="img/title_as02.gif" width="570" height="54"></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td align="center"><form action="sendmail.php" method="post">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="4" colspan="2" bgcolor="e7e7e7"></td>
</tr>
<tr>
<td width="100" height="30"><img src="img/as_td00.gif" width="89" height="20"></td>
<td class=text2><input type='text' name='to' maxlength='30' class='box2' value="admin@surysury.com">
°ü¸®ÀÚ¸ÞÀÏÀÔ´Ï´Ù.</td>
</tr>
<tr>
<td height="1" colspan="2" bgcolor="f0f0f0"></td>
</tr>
<tr>
<td width="100" height="30"><img src="img/as_td01.gif" width="89" height="20"></td>
<td class=text2><input type='text' name='name' maxlength='20' class='box2'>
½Ç¸íÀ» ±âÀÔÇØÁÖ¼¼¿ä.</td>
</tr>
<tr>
<td height="1" colspan="2" bgcolor="f0f0f0"></td>
</tr>
<tr>
<td width="100" height="30"><img src="img/as_td02.gif" width="89" height="20"></td>
<td><input type='text' name='mail' maxlength='30' class='box2'></td>
</tr>
<tr>
<td height="1" colspan="2" bgcolor="f0f0f0"></td>
</tr>
<tr>
<td width="100" height="30"><img src="img/as_td03.gif" width="89" height="20"></td>
<td class=text2><input type='text' maxLength='4' size='4' name='tel0' class='box2'>
-
<input type='text' maxLength='4' size='4' name='tel1' class='box2'>
-
<input type='text' maxLength='4' size='4' name='tel2' class='box2'>
Áö¿ª¹øÈ£±âÀç ¿ä¸Á</td>
</tr>
<tr>
<td height="1" colspan="2" bgcolor="f0f0f0"></td>
</tr>
<tr>
<td width="100" height="30"><img src="img/as_td04.gif" width="89" height="20"></td>
<td><input type='text' size='60' name='address' class='box2'></td>
</tr>
<tr>
<td height="1" colspan="2" bgcolor="f0f0f0"></td>
</tr>
<tr>
<td width="100" height="30"><img src="img/as_td05.gif" width="89" height="20"></td>
<td><SELECT name='select0' class='box2'>
<OPTION value=¼±ÅþÈÇÔ selected>¼±ÅÃÇØÁÖ¼¼¿ä</OPTION>
<OPTION value=»ï¼º>»ï¼º</OPTION>
<OPTION value=»ïº¸>»ïº¸</OPTION>
<OPTION value=ÁÖÇö>ÁÖÇö</OPTION>
<OPTION value=¿Ü»ê>¿Ü»ê</OPTION>
<OPTION value="±âŸ ±¹³»">±âŸ ±¹³»</OPTION>
</SELECT> </td>
</tr>
<tr>
<td height="1" colspan="2" bgcolor="f0f0f0"></td>
</tr>
<tr>
<td width="100" height="30"><img src="img/as_td06.gif" width="89" height="20"></td>
<td><SELECT name='select1' class='box2'>
<option value="¼±ÅþÈÇÔ" selected>¼±ÅÃÇØÁÖ¼¼¿ä</option>
<option value="P2">P2</option>
<option value="P3">P3</option>
<option value="P4">P4</option>
<option value="AMD">AMD</option>
<option value="³ëÆ®ºÏ">³ëÆ®ºÏ</option>
</SELECT></td>
</tr>
<tr>
<td height="1" colspan="2" bgcolor="f0f0f0"></td>
</tr>
<tr>
<td width="100" height="30"><img src="img/as_td07.gif" width="89" height="20"></td>
<td><SELECT name='select2' class='box2'>
<option value="¼±ÅþÈÇÔ" selected>¼±ÅÃÇØÁÖ¼¼¿ä</option>
<option value="WIN 95">WIN 95</option>
<option value="WIN 98">WIN 98</option>
<option value="WIN 2000">WIN 2000</option>
<option value="WIN XP">WIN XP</option>
</SELECT></td>
</tr>
<tr>
<td height="1" colspan="2" bgcolor="f0f0f0"></td>
</tr>
<tr>
<td width="100" height="30"><img src="img/as_td08.gif" width="89" height="20"></td>
<td><input type='text' name='text0' size='50' class='box2'></td>
</tr>
<tr>
<td height="1" colspan="2" bgcolor="f0f0f0"></td>
</tr>
<tr>
<td width="100" height="130"><img src="img/as_td09.gif" width="89" height="20"></td>
<td><textarea name='memo' rows='8' cols='60'></textarea></td>
</tr>
<tr>
<td height="4" colspan="2" bgcolor="e7e7e7"></td>
</tr>
<tr align="center" valign="bottom">
<td height="50" colspan="2"><input name='image' type='image' onFocus='this.blur()' onClick='checkIt(this.form)' src='img/btn_ok.gif' width='100' height='33'>
</td>
</tr>
</table></form></td>
</tr>
</table></td>
</tr>
<tr>
<td height="30" background="img/center_bg.gif"> </td>
</tr>
<tr>
<td align="right" background="img/center_bg.gif"><a href="#top"><img src="img/btn_top.gif" width="70" height="7" border="0"></a></td>
</tr>
<tr>
<td height="30" background="img/center_bg.gif"> </td>
</tr>
<tr>
<td><img src="img/center_lowbar.gif" width="710" height="21"></td>
</tr>
<tr>
<td> </td>
</tr>
</table></td>
<td width="107" rowspan="2" valign="top">
<?php include"include/quick.php"; ?>
</td>
</tr>
<tr>
<td> </td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td>
<?php include"include/bottom.php"; ?>
</td>
</tr>
</table>
</body>
</html>
½Åû¿Ï·áÆû url ÁÖ¼Ò¿Í ¼Ò½º-----------------------------------------------------------------------
½Åû¿Ï·á ÁÖ¼Ò´Â http://www.surysury.com/sendmail.php
<?
$_zb_url = "http://www.surysury.com/bbs/";
$_zb_path = "/www/surysury/bbs/";
include $_zb_path."outlogin.php";
?>
<html>
<head>
<title>:::¼ö¸®¼ö¸®´åÄÄ::: ¢Ï1600-0234</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<link href="css/text.css" rel="stylesheet" type="text/css">
<script src="include/iezn_embed_patch.js" type="text/javascript"></script>
<script language="JavaScript">
<!--
function bluring(){
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
}
document.onfocusin=bluring;
// -->
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><a name=top></a>
<td>
<?php include"include/top.php"; ?>
</td>
</tr>
<tr>
<td>
<?php include"include/main_flash.php"; ?>
</td>
</tr>
<tr>
<td bgcolor="EFF1F1"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="200" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="25"> </td>
</tr>
<tr>
<td><img src="img/sub_topbar.gif" width="200" height="30"></td>
</tr>
<tr>
<td><img src="img/subtitle_as.gif" width="200" height="40"></td>
</tr>
<tr>
<td background="img/sub_bg.gif"> </td>
</tr>
<tr>
<td background="img/sub_bg.gif"><a href="as.php"><img src="img/sub_as01.gif" width="88" height="15" border="0"></a></td>
</tr>
<tr>
<td><img src="img/sub_dotbar.gif" width="200" height="15"></td>
</tr>
<tr>
<td><img src="img/sub_lowbar.gif" width="200" height="63"></td>
</tr>
<tr>
<td>
<?php
if($mode=='email') include"include/email.php";
else include"include/sub.php";
?>
</td>
</tr>
</table></td>
<td width="720" rowspan="2" valign="top"><table width="710" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="25"> </td>
</tr>
<tr>
<td><img src="img/center_topbar.gif" width="710" height="30"></td>
</tr>
<tr>
<td align="center" background="img/center_bg.gif"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="img/title_as.gif" width="627" height="40"></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td align="center"><img src="img/title_as02.gif" width="570" height="54"></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td>
<?php include"sendmail_ok.php"; ?>
</td>
</tr>
</table></td>
</tr>
<tr>
<td height="30" background="img/center_bg.gif"> </td>
</tr>
<tr>
<td align="right" background="img/center_bg.gif"><a href="#top"><img src="img/btn_top.gif" width="70" height="7" border="0"></a></td>
</tr>
<tr>
<td height="30" background="img/center_bg.gif"> </td>
</tr>
<tr>
<td><img src="img/center_lowbar.gif" width="710" height="21"></td>
</tr>
<tr>
<td> </td>
</tr>
</table></td>
<td width="107" rowspan="2" valign="top">
<?php include"include/quick.php"; ?>
</td>
</tr>
<tr>
<td> </td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td>
<?php include"include/bottom.php"; ?>
</td>
</tr>
</table>
</body>
</html>
sendmail.php ¾È¿¡ sendmail_ok.php¸¦ ÀÎŬ·çµå ÇÏ¿´½À´Ï´Ù.
Å×À̺íÀÌ ±úÁ®¼ ÀÎŬ·çµå Çߴµ¥ ¼Ò¿ëÀÌ ¾ø¾ú½À´Ï´Ù. ¤Ð_¤Ð ------------------------------------------
<?
echo"
<script>
function back()
{
history.go(-1);
}
</script>
<center>
";
if(!$name)
{
echo("<br><br><br>
<script>
document.write('À̸§À» Àû¾îÁֽʽÿä.');
</script>
<form>
<input type=button value=' µÚ·Î ' onclick='back()'>
</form>
");
exit;
}
if(!$mail)
{
echo("<br><br><br>
<script>
document.write('Mail ÁÖ¼Ò¸¦ Àû¾îÁֽʽÿä.');
</script>
<form>
<input type=button value=' µÚ·Î ' onclick='back()'>
</form>
");
exit;
}
if(!$tel0)
{
echo("<br><br><br>
<script>
document.write('ÀüȹøÈ£¸¦ Àû¾îÁÖ¼¼¿ä.');
</script>
<form>
<input type=button value=' µÚ·Î ' onclick='back()'>
</form>
");
exit;
}
if(!$tel1)
{
echo("<br><br><br>
<script>
document.write('ÀüȹøÈ£¸¦ Àû¾îÁÖ¼¼¿ä.');
</script>
<form>
<input type=button value=' µÚ·Î ' onclick='back()'>
</form>
");
exit;
}
if(!$tel2)
{
echo("<br><br><br>
<script>
document.write('ÀüȹøÈ£¸¦ Àû¾îÁÖ¼¼¿ä.');
</script>
<form>
<input type=button value=' µÚ·Î ' onclick='back()'>
</form>
");
exit;
}
if(!$address)
{
echo("<br><br><br>
<script>
document.write('ÁÖ¼Ò¸¦ Àû¾îÁÖ¼¼¿ä.');
</script>
<form>
<input type=button value=' µÚ·Î ' onclick='back()'>
</form>
");
exit;
}
if(!$text0)
{
echo("<br><br><br>
<script>
document.write('¹æ¹®½Ã°£À» ¿ù/ÀÏ/½Ã°£À¸·Î Àû¾îÁÖ¼¼¿ä.');
</script>
<form>
<input type=button value=' µÚ·Î ' onclick='back()'>
</form>
");
exit;
}
if(!$memo)
{
echo("<br><br><br>
<script>
document.write('»ó¼¼Áõ»óÀ» ÀÔ·ÂÇØ ÁֽʽÿÀ.');
</script>
<form>
<input type=button value=' µÚ·Î ' onclick='back()' style='cursor:hand; background-color:white; border:1 solid black;height:18'>
</form>
");
exit;
}
$header = "Return-Path: $mail\n";
$header .= "From: $name <$mail>\n";
$header .= "Reply-to: $mail\n";
$header .= "X-Mailer: progmailler\n";
if($html) $header .= "Content-Type: text/html;"; else $header .= "Content-Type: text/plain;";
$header .= "charset=euc-kr\n";
$header .= "MIME-Version: 1.0\r\n";
if($html) $memo=nl2br($memo);
$tomail = "ÄÄAS½Åû<admin@surysury.com>";
$subject = "[ÄÄAS½Åû] $name";
$memo = stripslashes($memo);
$content = "½ÅûÀÎ : $name
À̸ÞÀÏ : $mail
¿¬¶ôó : $tel0 - $tel1 - $tel2
ÁÖ¼Ò : $address
Á¦Á¶È¸»ç : $select0
±âÁ¾ : $select1
¿î¿µÃ¼Á¦ : $select2
¹æ¹®½Ã°£ : $text0
»ó¼¼Áõ»ó : $memo";
mail($to,$subject,$content,$header);
echo"<br><br><center>¸ÞÀÏÀ»<br>°ü¸®ÀÚ¿¡°Ô ¼º°øÀûÀ¸·Î º¸³Â½À´Ï´Ù.<br>Á¢¼ö È®ÀÎ ÈÄ ¿¬¶ôµå¸®°Ú½À´Ï´Ù.<br>ÀúÈñ ¼ö¸®¼ö¸®´åÄÄÀ» ÀÌ¿ëÇØÁּż °¨»çÇÕ´Ï´Ù.^^*</center>
<meta http-equiv='refresh' content='5;url=as.php'>
";
?>
------------------------------------------ÀÌ»óÀÔ´Ï´Ù.