Àü¿¡ ¿Ã¶ó¿Â ±Û °Ë»öµµ Çغ¸°í ³ª¸§´ë·Î ¿©±âÀú±â °Ë»öµµ Çغ¸°í
Á¦´ë·Î ¸ÞÀÏ ¹ß¼ÛÀÌ ¾ÈµÇ´Â ¿øÀÎÀ» ã¾Æº¸·Á°í Çߴµ¥,..
¾ÆÁ÷ ÇØ°áÀ» ¸øÇß¾î¿ä.
Æû¸ÞÀÏÀ» ¸¸µé¾ú´Âµ¥.. ÀÔ·Â ÆäÀÌÁö´Â join.php ÀÌ°í ÀÔ·Â ³»¿ëÀÌ »Ñ·ÁÁö´Â ÆäÀÌÁö´Â email.php ÀÔ´Ï´Ù.
join.php¿¡ Æû¸¸µé°í ½ºÅ©¸³Æ® ³Ö¾ú½À´Ï´Ù. ==============================================
<html>
<head>
<script language="JavaScript">
function checkIt(form) {
if(!form.name.value) {
alert('°¡ÀÔÀÚ¸íÀ» ÀÔ·ÂÇØÁֽʽÿä.');
form.name.focus();
return;
exit;
}
if(!form.age1.value) {
alert('Áֹεî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØÁֽʽÿä.');
form.age.focus();
return;
}
if(!form.age2.value) {
alert('Áֹεî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØÁֽʽÿä.');
form.age.focus();
return;
}
if(!form.add.value) {
alert('ÁÖ¼Ò¸¦ ÀÔ·ÂÇØÁֽʽÿä.');
form.add.focus();
return;
}
if(!form.tel1.value) {
alert('ÀÚÅÃÀüȹøÈ£¸¦ ÀÔ·ÂÇØÁֽʽÿä.');
form.tel1.focus();
return;
}
if(!form.tel2.value) {
alert('Á÷ÀåÀüȹøÈ£¸¦ ÀÔ·ÂÇØÁֽʽÿä.');
form.tel2.focus();
return;
}
if(!form.tel3.value) {
alert('ÇÚµåÆù¹øÈ£¸¦ ÀÔ·ÂÇØÁֽʽÿä.');
form.tel3.focus();
return;
}
form.submit();
}
</script>
</head>
<body>
<form action="email.php" method="post" name="form" onSubmit="return false;">
<!--Æû³»¿ëÀÖÀ½-->
</body>
email.php¿¡ ³»¿ë ÀϺÎÀÔ´Ï´Ù. ==============================================
<?
$current_time = time();
$signdate = date("Y³â m¿ù dÀÏ H½Ã iºÐ", $current_time);
$tomail = "Ƽ·Î±×ÀÎ<¸ÞÀÏ°èÁ¤>";
$subject = "[Ƽ·Î±×Àΰ¡ÀÔ½Åû $day] $name";
$memo = nl2br("$memo");
$memo = stripslashes("$memo");
$content = "½Åû»óÇ° : $day
½ÅûÀÎ : $name
Áֹεî·Ï¹øÈ£ : $age1-$age2
ÁÖ¼Ò : $add
ÀüȹøÈ£ : $tel1
ÇÚµåÆù¹øÈ£ : $tel2
Á÷Àå¹øÈ£ : $tel3
°èÁ¹øÈ£ :$bank1ÀºÇà / °èÁ¹øÈ£ $bank2 / ¿¹±ÝÁÖ $bankname
½Åû»óÇ° : $day
±âŸ»çÇ× : $memo";
mail($tomail,$subject,$content,$header);
?>
<html>
<head>
ÀÌ·¸°Ô ³Ö¾ú´Âµ¥¿ä..
¹®Á¦´Â
join.php¿¡¼ ÀÔ·ÂÇÑ ³»¿ëÀÌ email.php·Î Àß »Ñ·ÁÁý´Ï´Ù.
±×·±µ¥ ¼³Á¤ÇØ ³õÀº Á¦ ¸ÞÀϷδ ³»¿ëÀÌ ¾È¿Â´Ù´Â °ÅÁÒ.
Á¦°¡ ÇÁ·Î±×·¥ ÂÊÀº ¹®¿ÜÇÑ À̶ó¼ ÀüÇô ¸ô¶ó¿ä.
¾îµð¼ ¹¹°¡ À߸øµÆ´ÂÁö..
À§ÀÇ 2ÆäÀÌÁö ÄÚµù ¸»°í ¶Ç µû·Î ÀÛ¾÷ÇؾßÇÏ´Â°Ô Àִ°ÇÁö ´äº¯ ºÎŹµå¸³´Ï´Ù.