묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
폼에일인데 버튼을 이미지 필드로 바꾸고 싶습니다.
2004.05.13 11:18
안녕하세요 고수님들~
다름이 아니라 아래에 있는 폼메일에서 "보내기버튼"을 "이미지필드"로 바꾸어 사용하려고 하는데 바꾼후에 보내기를 클릭하면 "160번째 라인에 에러가 있다고" 합니다.
하지만 이미지 필드가 아닌 원본의 버튼을 클릭하면 정상적인 작동이 되거든요.
여기서 내용을 모두 넣은후에 보내기를 하면 적상적으로 보내어 지지만 보내는 사람의 이름이나 이메일등을 빼고 보내면 에러가 나타나고 있습니다.
어떻게 해결 해야 좋을까요?
117번 라인에 수정한 버튼이 있습니다.
<?
/********************************************************************************************************
Title : XBBS ver.3.0.2
Part : Xformmail ver.3.0.2
Segment : formmail ver 3.0.2
FileName : xbbs/xformmail/formmail-nodb.php
개발자 : 임영우
연락처 : 017-425-5454
최종수정일 : 2001-08-22
*********************************************************************************************************/
?>
<?
//========================= Show Form =================
Function ShowForm( $nextpage, $to_name, $to_addr, $subject )
{
include( "xformmail-nodb_head.php" ) ;
echo "
<script language='JavaScript'>
function MySubmit()
{
var F = document.MailForm ;
if( F.from_name.value.length < 1 ) { alert( '보내는이 이름이 없습니다.' ) ; return ; }
else if( F.from_addr.value.length < 1 ) { alert( '보내는이 email이 없습니다.' ) ; return ; }
else if( F.to_name.value.length < 1 ) { alert( '받는이 이름이 없습니다.' ) ; return ; }
else if( F.to_addr.value.length < 1 ) { alert( '받는이 email이 없습니다.' ) ; return ; }
else if( F.subject.value.length < 1 ) { alert( '제목이 없습니다.' ) ; return ; }
else if( F.body.value.length < 1 ) { alert( '내용이 없습니다.' ) ; return ; }
else { F.btGo.disabled = true ; F.submit() ; }
}
</script>
<form method=post name='MailForm' action='$PHP_SELF' enctype='multipart/form-data' onSubmit='this.btGo.disabled=true;'>
<link href='../style.css' rel='stylesheet' type='text/css'>
<table width='450' border=0 cellpadding=0 cellspacing=0>
<TR height=25>
<TD colspan=2><img src='images/title.gif' width='450' height='137'></td>
</tr>
<tr>
<td height=6 colspan=2><img src=../usershop/images/mail-line.gif width=450 height=1></td>
</tr>
<tr>
<td width=30% height=6 class=padding-left><img src=../usershop/images/ic.gif width=10 height=9 align=absmiddle>
<strong>발신자 이름</strong></td>
<td align=left>
<input name='from_name' value='$name' class='box' size=46 maxlength=6>
</td>
</tr>
<tr>
<td height=6 colspan=2><img src=../usershop/images/mail-line.gif width=450 height=1></td>
</tr>
<tr>
<td height=6 class=padding-left><img src=../usershop/images/ic.gif width=10 height=9 align=absmiddle>
<strong>발신자 메일</strong></td>
<td align=left><input name='from_addr' value='$email' class='box' size=46></td>
</tr>
<tr>
<td height=6 colspan=2><img src=../usershop/images/mail-line.gif width=450 height=1></td>
</tr>
<tr>
<td height=25 class=padding-left><img src=../usershop/images/ic.gif width=10 height=9 align=absmiddle>
<strong>수신자 이름</strong></td>
<td><input name='to_name' value='$to_name' class='box' size=46 maxlength=6></td>
</tr>
<tr>
<td height=6 colspan=2><img src=../usershop/images/mail-line.gif width=450 height=1></td>
</tr>
<tr>
<td height=25 class=padding-left><img src=../usershop/images/ic.gif width=10 height=9 align=absmiddle>
<strong>수신자 메일</strong></td>
<td>
<input name='to_addr' value='$to_addr' class='box' size=46></td>
</tr>
<tr>
<td height=6 colspan=2><img src=../usershop/images/mail-line.gif width=450 height=1></td>
</tr>
<tr>
<td height=25 class=padding-left><img src=../usershop/images/ic.gif width=10 height=9 align=absmiddle>
<strong>참 조</strong></td>
<td><input name='cc_addr' class='box' size=46></td>
</tr>
<tr>
<td height=6 colspan=2><img src=../usershop/images/mail-line.gif width=450 height=1></td>
</tr>
<tr>
<td height=25 class=padding-left><img src=../usershop/images/ic.gif width=10 height=9 align=absmiddle>
<strong>제 목</strong></td>
<td><input name='subject' class='box' value='$subject' size=46></td>
</tr>
<tr>
<td height=6 colspan=2><img src=../usershop/images/mail-line.gif width=450 height=1></td>
</tr>
<tr>
<td height=25 class=padding-left><img src=../usershop/images/ic.gif width=10 height=9 align=absmiddle>
<strong>전송할 파일</strong></td>
<td><input name='userfile' type=file class='box' size=31> <br> </tr>
<tr>
<td height=6 colspan=2><img src=../usershop/images/mail-line.gif width=450 height=1></td>
</tr>
<tr>
<td class=padding-left><img src=../usershop/images/ic.gif width=10 height=9 align=absmiddle>
<strong>질문 내용</strong></td>
<td><textarea name='body' cols=44 rows=9 wrap=hard class='b_chtop_text'></textarea></td>
</tr>
<tr valign='bottom'>
<td height='6' colspan='2'><img src=../usershop/images/mail-line.gif width='450' height='1'></td>
</tr>
<tr valign='bottom'>
<td height='35' colspan=2 align=center>
<!-- 수정한 버튼 -->
<input name='btGo' type='image' src='images/send.gif' onClick='MySubmit()' onfocus='this.blur()' width='72' height='25'+ '+ ' border='0'>
<a href='#' onclick='javascript:self.close();' onfocus='this.blur()'><img src='../member/images/button/cancel.gif' width='60' height='25' border='0'></a>
<!-- 수정한 버튼 끝 -->
<!-- 원본 버튼 -->
<input type=button name='btGo' value='메일전송' onClick='MySubmit()'>
<input type='reset' name='Reset' value='취소'>
<!-- 원본 버튼 끝 -->
</td>
</tr>
<tr>
<td height=14 colspan=2><img src=../usershop/images/mail-bot.gif width=450 height=14></td>
</tr>
</table>
<input type=hidden name='mode' value='action'>
<input type=hidden name='nextpage' value='$nextpage'>
</form>
" ;
include( "xformmail-nodb_tail.php" ) ;
return ;
}
?>
<?
//========================= Action =================
Function Action( $from_name, $from_addr, $to_name, $to_addr, $cc_addr, $subject, $userfile, $body, $nextpage )
{
global $userfile_name, $userfile_size, $userfile_type ;
//------------------- 넘어온 값의 에러를 처리하는 부분.
if( !$from_name ) FnError( "보내는이의 이름을 입력하세요", -1 ) ;
if( !$to_addr ) FnError( "받는이의 주소를 입력하세요", -1 ) ;
if( !$from_addr ) FnError( "보내는이의 주소를 입력하세요", -1 ) ;
if( !$subject ) FnError( "제목이 없습니다.", -1 ) ;
//---------------------- 메일 헤더를 만들어주는 부분.
$mailheaders .= "To: $to_name <$to_addr>rn";
$mailheaders .= "From: $from_name <$from_addr>rn";
$mailheaders .= "Subject: $subjectrn";
$mailheaders .= "Return-Path: $from_addrrn";
$mailheaders .= "X-Mailer: X Form Mailerrn";
$mailheaders .= "Reply-To: $from_addr rn";
if( $cc_addr )
$mailheaders .= "CC: $cc_addr rn";
if( $userfile && $userfile_size )
{
$filename = basename( $userfile_name ) ;
$result = fopen( $userfile, "r" ) ;
$file = fread( $result, $userfile_size ) ;
fclose( $result ) ;
if( $userfile_type == "" )
$userfile_type = "application/octet-stream" ;
$boundary = uniqid("part").".XFormMailer." ;
$mailheaders .= "MIME-Version: 1.0rn";
$mailheaders .= "Content-Type: multipart/mixed; boundary="$boundary"";
$bodytext = "Mime Prologue.rnrn";
$bodytext .= "--$boundaryrn";
$bodytext .= "Content-Type: text/html; charset=euc-krrn";
$bodytext .= "Content-Transfer-Encoding: 8bitrnrn";
$bodytext .= nl2br( stripslashes($body) ) . "rnrn";
$bodytext .= "--$boundaryrn";
$bodytext .= "Content-Type: $userfile_type; name="$filename"rn";
$bodytext .= "Content-Transfer-Encoding: base64rn";
$bodytext .= "Content-Disposition: inline; filename="$filename"rnrn" ;
$bodytext .= ereg_replace("(.{80})","\1rn",base64_encode($file));
$bodytext .= "rnrn--$boundary--" . "rn";
$bodytext .= "Mime Epilogue" ;
}
else $bodytext = stripslashes( $body ) ;
$result = mail( $to_addr, $subject, $bodytext, $mailheaders ) ;
//--------------------------- 메일의 내용과 전송 에러여부를 출력.
$body_text = nl2br( $body ) ;
//----------------------- 메일전송 결과.
include( "xformmail-nodb_head.php" ) ;
echo "
<table border=0 cellpadding=2 cellspacing=1>
<TR height=25>
<TD bgcolor='#e7e7e7' align=right width=400 colspan=2 style='border-width:1px; border-bottom-color:c0c0c0; border-left-color:#f5f5f5; border-top-color:#f5f5f5; border-right-color:c0c0c0; border-style:solid;'>편지쓰기 결과</td>
</tr>
<tr>
<td bgcolor='#e7e7e7' align=center width=100 style='border-width:1px; border-bottom-color:c0c0c0; border-left-color:#f5f5f5; border-top-color:#f5f5f5; border-right-color:c0c0c0; border-style:solid;'>전송 결과</td>
<td bgcolor='#f5f5f5' align=left width=300> ".( ($result)? ("메일이 성공적으로 전송 되었습니다."): ("메일 전송에 에러가 발생되었습니다.<br><a href='JavaScript:history.go(-1);'>메일 쓰기폼으로 가기</a>") )." </td>
</tr>
<tr>
<td bgcolor='#e7e7e7' align=center width=100 style='border-width:1px; border-bottom-color:c0c0c0; border-left-color:#f5f5f5; border-top-color:#f5f5f5; border-right-color:c0c0c0; border-style:solid;'>보내는 이</td>
<td bgcolor='#f5f5f5' align=left width=300> $from_name $from_addr </td>
</tr>
<tr>
<td bgcolor='#e7e7e7' align=center width=100 style='border-width:1px; border-bottom-color:c0c0c0; border-left-color:#f5f5f5; border-top-color:#f5f5f5; border-right-color:c0c0c0; border-style:solid;'>받는 이</td>
<td bgcolor='#f5f5f5' align=left width=300> $to_name $to_addr </td>
</tr>
<tr>
<td bgcolor='#e7e7e7' align=center width=100 style='border-width:1px; border-bottom-color:c0c0c0; border-left-color:#f5f5f5; border-top-color:#f5f5f5; border-right-color:c0c0c0; border-style:solid;'>참 조</td>
<td bgcolor='#f5f5f5' align=left width=300> $cc_addr </td>
</tr>
<tr>
<td bgcolor='#e7e7e7' align=center width=100 style='border-width:1px; border-bottom-color:c0c0c0; border-left-color:#f5f5f5; border-top-color:#f5f5f5; border-right-color:c0c0c0; border-style:solid;'>제 목</td>
<td bgcolor='#f5f5f5' align=left width=300> $subject </td>
</tr>
<tr>
<td bgcolor='#e7e7e7' align=center width=100 style='border-width:1px; border-bottom-color:c0c0c0; border-left-color:#f5f5f5; border-top-color:#f5f5f5; border-right-color:c0c0c0; border-style:solid;'>전송한 파일</td>
<td bgcolor='#f5f5f5' align=left width=300> $userfile_name </td>
</tr>
<tr>
<td bgcolor='#f5f5f5' align=left width=400 colspan=2 style='border-width:1px; border-bottom-color:c0c0c0; border-left-color:#f5f5f5; border-top-color:#f5f5f5; border-right-color:c0c0c0; border-style:solid;'+ '>$body_text</td>
</tr>
<tr>
<td bgcolor='#e7e7e7' align=right width=400 colspan=2 style='border-width:1px; border-bottom-color:c0c0c0; border-left-color:#f5f5f5; border-top-color:#f5f5f5; border-right-color:c0c0c0; border-style:solid;'>
<input type=button name='btOK' value='확인' onClick="".( (strtoupper($nextpage)=="WINDOW_CLOSE")? ("window.close();"): ("document.location.replace('$nextpage');") )."">
</td>
</tr>
</table>
" ;
include( "xformmail-nodb_tail.php" ) ;
return ;
}
?>
<?
//=========================== Main ====================
if( strtoupper($mode) == 'ACTION' ) Action( $from_name, $from_addr, $to_name, $to_addr, $cc_addr, $subject, $userfile, $body, $nextpage ) ;
else ShowForm( $nextpage, $to_name, $to_addr, $subject ) ;
?>
<? /* End of formmail-nodb.php */ ?>
다름이 아니라 아래에 있는 폼메일에서 "보내기버튼"을 "이미지필드"로 바꾸어 사용하려고 하는데 바꾼후에 보내기를 클릭하면 "160번째 라인에 에러가 있다고" 합니다.
하지만 이미지 필드가 아닌 원본의 버튼을 클릭하면 정상적인 작동이 되거든요.
여기서 내용을 모두 넣은후에 보내기를 하면 적상적으로 보내어 지지만 보내는 사람의 이름이나 이메일등을 빼고 보내면 에러가 나타나고 있습니다.
어떻게 해결 해야 좋을까요?
117번 라인에 수정한 버튼이 있습니다.
<?
/********************************************************************************************************
Title : XBBS ver.3.0.2
Part : Xformmail ver.3.0.2
Segment : formmail ver 3.0.2
FileName : xbbs/xformmail/formmail-nodb.php
개발자 : 임영우
연락처 : 017-425-5454
최종수정일 : 2001-08-22
*********************************************************************************************************/
?>
<?
//========================= Show Form =================
Function ShowForm( $nextpage, $to_name, $to_addr, $subject )
{
include( "xformmail-nodb_head.php" ) ;
echo "
<script language='JavaScript'>
function MySubmit()
{
var F = document.MailForm ;
if( F.from_name.value.length < 1 ) { alert( '보내는이 이름이 없습니다.' ) ; return ; }
else if( F.from_addr.value.length < 1 ) { alert( '보내는이 email이 없습니다.' ) ; return ; }
else if( F.to_name.value.length < 1 ) { alert( '받는이 이름이 없습니다.' ) ; return ; }
else if( F.to_addr.value.length < 1 ) { alert( '받는이 email이 없습니다.' ) ; return ; }
else if( F.subject.value.length < 1 ) { alert( '제목이 없습니다.' ) ; return ; }
else if( F.body.value.length < 1 ) { alert( '내용이 없습니다.' ) ; return ; }
else { F.btGo.disabled = true ; F.submit() ; }
}
</script>
<form method=post name='MailForm' action='$PHP_SELF' enctype='multipart/form-data' onSubmit='this.btGo.disabled=true;'>
<link href='../style.css' rel='stylesheet' type='text/css'>
<table width='450' border=0 cellpadding=0 cellspacing=0>
<TR height=25>
<TD colspan=2><img src='images/title.gif' width='450' height='137'></td>
</tr>
<tr>
<td height=6 colspan=2><img src=../usershop/images/mail-line.gif width=450 height=1></td>
</tr>
<tr>
<td width=30% height=6 class=padding-left><img src=../usershop/images/ic.gif width=10 height=9 align=absmiddle>
<strong>발신자 이름</strong></td>
<td align=left>
<input name='from_name' value='$name' class='box' size=46 maxlength=6>
</td>
</tr>
<tr>
<td height=6 colspan=2><img src=../usershop/images/mail-line.gif width=450 height=1></td>
</tr>
<tr>
<td height=6 class=padding-left><img src=../usershop/images/ic.gif width=10 height=9 align=absmiddle>
<strong>발신자 메일</strong></td>
<td align=left><input name='from_addr' value='$email' class='box' size=46></td>
</tr>
<tr>
<td height=6 colspan=2><img src=../usershop/images/mail-line.gif width=450 height=1></td>
</tr>
<tr>
<td height=25 class=padding-left><img src=../usershop/images/ic.gif width=10 height=9 align=absmiddle>
<strong>수신자 이름</strong></td>
<td><input name='to_name' value='$to_name' class='box' size=46 maxlength=6></td>
</tr>
<tr>
<td height=6 colspan=2><img src=../usershop/images/mail-line.gif width=450 height=1></td>
</tr>
<tr>
<td height=25 class=padding-left><img src=../usershop/images/ic.gif width=10 height=9 align=absmiddle>
<strong>수신자 메일</strong></td>
<td>
<input name='to_addr' value='$to_addr' class='box' size=46></td>
</tr>
<tr>
<td height=6 colspan=2><img src=../usershop/images/mail-line.gif width=450 height=1></td>
</tr>
<tr>
<td height=25 class=padding-left><img src=../usershop/images/ic.gif width=10 height=9 align=absmiddle>
<strong>참 조</strong></td>
<td><input name='cc_addr' class='box' size=46></td>
</tr>
<tr>
<td height=6 colspan=2><img src=../usershop/images/mail-line.gif width=450 height=1></td>
</tr>
<tr>
<td height=25 class=padding-left><img src=../usershop/images/ic.gif width=10 height=9 align=absmiddle>
<strong>제 목</strong></td>
<td><input name='subject' class='box' value='$subject' size=46></td>
</tr>
<tr>
<td height=6 colspan=2><img src=../usershop/images/mail-line.gif width=450 height=1></td>
</tr>
<tr>
<td height=25 class=padding-left><img src=../usershop/images/ic.gif width=10 height=9 align=absmiddle>
<strong>전송할 파일</strong></td>
<td><input name='userfile' type=file class='box' size=31> <br> </tr>
<tr>
<td height=6 colspan=2><img src=../usershop/images/mail-line.gif width=450 height=1></td>
</tr>
<tr>
<td class=padding-left><img src=../usershop/images/ic.gif width=10 height=9 align=absmiddle>
<strong>질문 내용</strong></td>
<td><textarea name='body' cols=44 rows=9 wrap=hard class='b_chtop_text'></textarea></td>
</tr>
<tr valign='bottom'>
<td height='6' colspan='2'><img src=../usershop/images/mail-line.gif width='450' height='1'></td>
</tr>
<tr valign='bottom'>
<td height='35' colspan=2 align=center>
<!-- 수정한 버튼 -->
<input name='btGo' type='image' src='images/send.gif' onClick='MySubmit()' onfocus='this.blur()' width='72' height='25'+ '+ ' border='0'>
<a href='#' onclick='javascript:self.close();' onfocus='this.blur()'><img src='../member/images/button/cancel.gif' width='60' height='25' border='0'></a>
<!-- 수정한 버튼 끝 -->
<!-- 원본 버튼 -->
<input type=button name='btGo' value='메일전송' onClick='MySubmit()'>
<input type='reset' name='Reset' value='취소'>
<!-- 원본 버튼 끝 -->
</td>
</tr>
<tr>
<td height=14 colspan=2><img src=../usershop/images/mail-bot.gif width=450 height=14></td>
</tr>
</table>
<input type=hidden name='mode' value='action'>
<input type=hidden name='nextpage' value='$nextpage'>
</form>
" ;
include( "xformmail-nodb_tail.php" ) ;
return ;
}
?>
<?
//========================= Action =================
Function Action( $from_name, $from_addr, $to_name, $to_addr, $cc_addr, $subject, $userfile, $body, $nextpage )
{
global $userfile_name, $userfile_size, $userfile_type ;
//------------------- 넘어온 값의 에러를 처리하는 부분.
if( !$from_name ) FnError( "보내는이의 이름을 입력하세요", -1 ) ;
if( !$to_addr ) FnError( "받는이의 주소를 입력하세요", -1 ) ;
if( !$from_addr ) FnError( "보내는이의 주소를 입력하세요", -1 ) ;
if( !$subject ) FnError( "제목이 없습니다.", -1 ) ;
//---------------------- 메일 헤더를 만들어주는 부분.
$mailheaders .= "To: $to_name <$to_addr>rn";
$mailheaders .= "From: $from_name <$from_addr>rn";
$mailheaders .= "Subject: $subjectrn";
$mailheaders .= "Return-Path: $from_addrrn";
$mailheaders .= "X-Mailer: X Form Mailerrn";
$mailheaders .= "Reply-To: $from_addr rn";
if( $cc_addr )
$mailheaders .= "CC: $cc_addr rn";
if( $userfile && $userfile_size )
{
$filename = basename( $userfile_name ) ;
$result = fopen( $userfile, "r" ) ;
$file = fread( $result, $userfile_size ) ;
fclose( $result ) ;
if( $userfile_type == "" )
$userfile_type = "application/octet-stream" ;
$boundary = uniqid("part").".XFormMailer." ;
$mailheaders .= "MIME-Version: 1.0rn";
$mailheaders .= "Content-Type: multipart/mixed; boundary="$boundary"";
$bodytext = "Mime Prologue.rnrn";
$bodytext .= "--$boundaryrn";
$bodytext .= "Content-Type: text/html; charset=euc-krrn";
$bodytext .= "Content-Transfer-Encoding: 8bitrnrn";
$bodytext .= nl2br( stripslashes($body) ) . "rnrn";
$bodytext .= "--$boundaryrn";
$bodytext .= "Content-Type: $userfile_type; name="$filename"rn";
$bodytext .= "Content-Transfer-Encoding: base64rn";
$bodytext .= "Content-Disposition: inline; filename="$filename"rnrn" ;
$bodytext .= ereg_replace("(.{80})","\1rn",base64_encode($file));
$bodytext .= "rnrn--$boundary--" . "rn";
$bodytext .= "Mime Epilogue" ;
}
else $bodytext = stripslashes( $body ) ;
$result = mail( $to_addr, $subject, $bodytext, $mailheaders ) ;
//--------------------------- 메일의 내용과 전송 에러여부를 출력.
$body_text = nl2br( $body ) ;
//----------------------- 메일전송 결과.
include( "xformmail-nodb_head.php" ) ;
echo "
<table border=0 cellpadding=2 cellspacing=1>
<TR height=25>
<TD bgcolor='#e7e7e7' align=right width=400 colspan=2 style='border-width:1px; border-bottom-color:c0c0c0; border-left-color:#f5f5f5; border-top-color:#f5f5f5; border-right-color:c0c0c0; border-style:solid;'>편지쓰기 결과</td>
</tr>
<tr>
<td bgcolor='#e7e7e7' align=center width=100 style='border-width:1px; border-bottom-color:c0c0c0; border-left-color:#f5f5f5; border-top-color:#f5f5f5; border-right-color:c0c0c0; border-style:solid;'>전송 결과</td>
<td bgcolor='#f5f5f5' align=left width=300> ".( ($result)? ("메일이 성공적으로 전송 되었습니다."): ("메일 전송에 에러가 발생되었습니다.<br><a href='JavaScript:history.go(-1);'>메일 쓰기폼으로 가기</a>") )." </td>
</tr>
<tr>
<td bgcolor='#e7e7e7' align=center width=100 style='border-width:1px; border-bottom-color:c0c0c0; border-left-color:#f5f5f5; border-top-color:#f5f5f5; border-right-color:c0c0c0; border-style:solid;'>보내는 이</td>
<td bgcolor='#f5f5f5' align=left width=300> $from_name $from_addr </td>
</tr>
<tr>
<td bgcolor='#e7e7e7' align=center width=100 style='border-width:1px; border-bottom-color:c0c0c0; border-left-color:#f5f5f5; border-top-color:#f5f5f5; border-right-color:c0c0c0; border-style:solid;'>받는 이</td>
<td bgcolor='#f5f5f5' align=left width=300> $to_name $to_addr </td>
</tr>
<tr>
<td bgcolor='#e7e7e7' align=center width=100 style='border-width:1px; border-bottom-color:c0c0c0; border-left-color:#f5f5f5; border-top-color:#f5f5f5; border-right-color:c0c0c0; border-style:solid;'>참 조</td>
<td bgcolor='#f5f5f5' align=left width=300> $cc_addr </td>
</tr>
<tr>
<td bgcolor='#e7e7e7' align=center width=100 style='border-width:1px; border-bottom-color:c0c0c0; border-left-color:#f5f5f5; border-top-color:#f5f5f5; border-right-color:c0c0c0; border-style:solid;'>제 목</td>
<td bgcolor='#f5f5f5' align=left width=300> $subject </td>
</tr>
<tr>
<td bgcolor='#e7e7e7' align=center width=100 style='border-width:1px; border-bottom-color:c0c0c0; border-left-color:#f5f5f5; border-top-color:#f5f5f5; border-right-color:c0c0c0; border-style:solid;'>전송한 파일</td>
<td bgcolor='#f5f5f5' align=left width=300> $userfile_name </td>
</tr>
<tr>
<td bgcolor='#f5f5f5' align=left width=400 colspan=2 style='border-width:1px; border-bottom-color:c0c0c0; border-left-color:#f5f5f5; border-top-color:#f5f5f5; border-right-color:c0c0c0; border-style:solid;'+ '>$body_text</td>
</tr>
<tr>
<td bgcolor='#e7e7e7' align=right width=400 colspan=2 style='border-width:1px; border-bottom-color:c0c0c0; border-left-color:#f5f5f5; border-top-color:#f5f5f5; border-right-color:c0c0c0; border-style:solid;'>
<input type=button name='btOK' value='확인' onClick="".( (strtoupper($nextpage)=="WINDOW_CLOSE")? ("window.close();"): ("document.location.replace('$nextpage');") )."">
</td>
</tr>
</table>
" ;
include( "xformmail-nodb_tail.php" ) ;
return ;
}
?>
<?
//=========================== Main ====================
if( strtoupper($mode) == 'ACTION' ) Action( $from_name, $from_addr, $to_name, $to_addr, $cc_addr, $subject, $userfile, $body, $nextpage ) ;
else ShowForm( $nextpage, $to_name, $to_addr, $subject ) ;
?>
<? /* End of formmail-nodb.php */ ?>
<input type='image' src='images/send.gif' onClick='MySubmit()' onfocus='blur()' width='72' height='25' border='0'>
<a href='javascript:self.close();' onfocus='blur()'><img src='../member/images/button/cancel.gif' width='60' height='25' border='0'></a>
<!-- 수정한 버튼 끝 -->
맞는데-ㅁ-;;
혹시 소스에 문제가 있는건 아닐까요?