묻고답하기

http://www.bucheonnomusa.co.kr/error.JPG항목을 추가했는데 보내고 확인해 보면 이름, 이메일 주소, 제목밖에 표시 안되네요.

소스
스크린샷은 링크파일-


----------------------mail.php---------------------------

<html>
<head>
<title>메일 발송</title>
</head>
<body bgcolor="white" text="black" link="black" vlink="black" alink="black">
<form method='post' action='send.php'>

<table border="0" cellpadding="0" cellspacing="0" width="392" align="center">
<tr><td width="392">

                <p align="center"><span style="font-size:9pt;"><b><font color="black"><br>어쩌구<br><br></font></b></span></p></table>
<table border="0" cellpadding="0" cellspacing="0" width="392" align="center">
<td width="392">
                <p align="left"><span style="font-size:9pt;"><b><font color="black">성명</b></font>
                </td><td><input type="text" name="name" maxlength="10" size="10" style="color:black;">
</td>
</tr>
<tr>
<td width="392">
                <p align="left"><span style="font-size:9pt;"><b>발신자 이메일 주소</b></span>   </td><td><input type="text" name="frommail" maxlength="35" size="35" style="color:black;">
</td>
</tr>
<tr>
<td width="392">
                <p align="left"><span style="font-size:9pt;"><b>소속, 직위</b></span>   </td><td><input type="text" name="grade" maxlength="35" size="35" style="color:black;">
</td>
</tr>
<tr>
<td width="392">
                <p align="left"><span style="font-size:9pt;"><b>전화번호</b></span>   </td><td><input type="text" name="phone" maxlength="35" size="35" style="color:black;">
</td>
</tr>
<tr>
<td width="392">
                <p align="left"><span style="font-size:9pt;"><b>팩스번호</b></span>   </td><td><input type="text" name="fax" maxlength="35" size="35" style="color:black;">
</td>
</tr>
<tr>
<td width="392">
                <p align="left"><span style="font-size:9pt;"><b>주소</b></span>   </td><td><input type="text" name="where" maxlength="35" size="35" style="color:black;">
</td>
</tr>
<tr>
<td width="392">
                <p align="left"><span style="font-size:9pt;"><b><font color="black">수신자 이메일 주소</font></b></span>  
                 </td><td><input type="text" name="tomail" maxlength="35" size="35" style="color:black;" value="css3135@yahoo.co.kr" readonly>
</td>
</tr>
<tr>
<td width="392">
                <p align="left"><span style="font-size:9pt;"><b><font color="black">제목</font></b></span>  </td><td>
                <input type="text" name="subject" maxlength="35" size="35" style="color:black; "><br>
</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="392" align="center">
<tr>
<td width="392">
                <p align="left"><textarea name="body" rows="8" cols="53" style="color:black;"></textarea><br><br>
              
</td>
</tr>
<tr>
<td width="392">
<center><input type="submit" value="메일보내기">  <input type="reset" value="  취  소  ">
                       </center>
</td>
</tr>
</table>
</form>
</body>
</html>


---------------------------send.php-------------------------
<?
function error($text){
echo "
<script language=javascript>
window.alert('$text')
history.go(-1)
</script>";
exit;
}

function msg($text){
echo "
<script language=javascript>
window.alert('$text')
</script>
<meta http-equiv='refresh' content='0;url=mail.php'>";
exit;
}


if (!$name) {error('성명을 적어주십시오.');}  // 이름이 없을때 에러 메세지
if(!ereg("@",$frommail)) {error('올바른 발신자 이메일 주소를 적어주십시오.');} // 보내는 메일주소나 @이 없으면 나오는 에러메세지
if (!$grade) {error('소속, 직위를 적어주십시오.');}
if (!$phone) {error('전화번호를 적어주십시오.');}
if (!$fax) {error('팩스번호를 적어주십시오.');}
if (!$where) {error('주소를 적어주십시오.');}
if(!ereg("@",$tomail)) {error('올바른 수신자 이메일 주소를 적어주십시오.');} // 받는 메일주소나 @이 없으면 나오는 에러메세지
if (!$subject) {error('제목을 적어주십시오.');} // 제목을 안적으면 나오는 에러 메세지.
if (!$body) {error('내용을 적어주십시오.');} // 내용을 안적으면 나오는 에러 메세지

$mailheaders .= "Return-Path: $frommail rn"; // 메일 헤더
$mailheaders .= "From: $name <$frommail>rn"; // 메일헤더, 이름과 email 주소가 나오게 함..

$result=mail($tomail , $subject , $body , $mailheaders); // 메일 함수

if($result){msg('메일이 성공적으로 발송되었습니다.');} // 성공하면 나오는 메제시
else{error('메일 발송에 실패하였습니다.');} // 편지가 전달되지 않으면 나오는 함수

?>

글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
임종혁(stargt) zChat ver 0.1 배포안하나요 [1] 2007.08.10
최지헌 폼메일에 관련된 질문.. [1] 2007.08.10
Anie Textarea에 대해서 질문이요.. [1] 2007.08.10
하늘님프 phpmyadmin 접속시 계정과 비번 입력후 접근하려면어찌해야하나요? [1] 2007.08.10
라진호 "<?=" 이건 뭐죠? [4] 2007.08.10
전종수 노프레임 홈피인데요 제발 도와주세요!!고수님들!! [5] 2007.08.10
장군:P 가로스크롤 질문입니다, [2] 2007.08.10
성시진 야후나 엠파스등에서 검색을하면 나오게하려면?,,, [3] 2007.08.10
딸긔 로그인 넣는법좀 아르켜주세요 [8] 2007.08.10
김민성 그림 태두리를 흐리게 하는효과 어떻게 하죠? [3] 2007.08.10
킬러 윈도우즈 2003 에서 익스플로러 풀스크린으로 띄우는법좀 알려주세요.. [1] 2007.08.10
zeroyy.com form 태그에서 변수값이 넘어가질 않습니다... [1] 2007.08.10
mogoon 소스 복사창 띄우기~ [2] 2007.08.10
함지인 이미지 레디 저장할때 질문요! [1] 2007.08.10
뮤라 노프레임홈 만들때.. [2] 2007.08.10
Asurada 스크립트 속에 값 고정... [1] 2007.08.10
이정식 이상해 기록에 에러로그로 기록됩니다. 해킹시도인가요????? 봐주세요... [3] 2007.08.10
김정의 꼭 알려주세요  
방창환 잘 안돼네요.... [2] 2007.08.10
hozz호찌 잡지 내용을 구할 수 있는..;; [1] 2007.08.10
양나욱 내가 만든 플래쉬가 다른 사람들에게도 보이게 하려면 [1] 2007.08.10
검사 포토샵7 네모 선 어떻게 그리죠? [1] 2007.08.10
쉿!비밀 이 소스를 제로보드에 적용시킬려면 어케?? [1] 2007.08.10
상큼딸기 포토샵 설정을 잘못한것인지 색상이... [2] 2007.08.10
나는나 date에 관한 질문 [5] 2007.08.10
멘도자 아, 잃어버린 3년. ;ㅁ; [1] 2007.08.10
멘도자 제로보드 가능한 무료계정 없나요..? [1] 2007.08.10
샤위엔즈™ echo관련 [2] 2007.08.10
김근순 MySql 컬럼에 따른 처리 속도에 대해... [2] 2007.08.10
배고파 플래시... 궁금합니다..