묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
폼메일을 자바로 만들었는데요 문제가 생겼습니다.ㅠ_ㅠ
2007.07.02 17:30
보내기를 누르면 바로 보내지지가 않구요 -_-; 이상한게 뜹니다..ㅜ_ㅜ
좀 도와주세요
http://mcntv.co.kr/email.html
----------
자바 소소는 이겁니다
<BODY STYLE="background-color:transparent">
<HTML>
<HEAD>
<TITLE> Sample Script </TITLE>
<STYLE>
body,td {font-size:12px}
</STYLE>
<SCRIPT LANGUAGE="JavaScript">
function msg() {
document.mailer.action = "mailto:"
mailtoandsubject = ((document.mailer.mailtoperson.options[document.mailer.mailtoperson.selectedIndex].value) + '?subject=' + document.mailer.subject.value);
}
</SCRIPT>
</HEAD>
<BODY>
<!----- 원하는 위치에 아래와 같이 코드를 붙여 넣으세요 ------->
<FORM NAME="mailer" METHOD="post" ACTION="" ENCTYPE="text/plain" onSubmit="(document.mailer.action += mailtoandsubject)">
<TABLE BORDER=0 cellspacing=1 cellpadding=5 width=600 align=center>
<TR VALIGN="top" bordercolor="#999999">
<TD width=100 align=right>받는사람 </TD>
<TD><SELECT NAME="mailtoperson" onChange="msg(this.form)">
<OPTION VALUE="snfl1005@nate.com">-- 운영자 --
<OPTION VALUE="snfl1005@nate.com">
<OPTION VALUE="snfl1005@nate.com">
<OPTION VALUE="">
</SELECT></TD>
</TR>
<TR VALIGN="top">
<TD align=right>보내는 사람 </TD>
<TD><INPUT TYPE="text" SIZE=45 NAME="name" onChange="msg(this.form)"></TD>
</TR>
<TR VALIGN="top">
<TD align=right>E-mail </TD>
<TD><INPUT TYPE="text" SIZE=45 NAME="email" onChange="msg(this.form)"></TD>
</TR>
<TR VALIGN="top">
<TD align=right>옵션 </TD>
<TD bgColor=white>
<SELECT NAME="priority" onChange="msg(this.form)">
<OPTION VALUE="Normal">보통
<OPTION VALUE="Urgent">긴급
<OPTION VALUE="No Reply Needed">답장필요 없슴
</SELECT></TD>
</TR>
<TR VALIGN="top">
<TD align=right>제목 </TD>
<TD><INPUT TYPE="text" SIZE=45 NAME="subject" onChange="msg(this.form)"></TD>
</TR>
<TR VALIGN="top">
<TD align=right>내용 </TD>
<TD><TEXTAREA NAME="message" COLS=45 ROWS=5 WRAP="virtual" OnChange="msg(this.form)"></TEXTAREA></TD>
</TR>
<TR>
<TD colspan=2 bgColor=white align=center>
<INPUT TYPE="submit" VALUE=" 보내기 ">
<INPUT TYPE="reset" VALUE=" 다시쓰기 "></TD>
</TR>
</TABLE>
</FORM>
<!------------------ 여기까지 -------------->
</BODY>
</HTML>
좀 도와주세요
http://mcntv.co.kr/email.html
----------
자바 소소는 이겁니다
<BODY STYLE="background-color:transparent">
<HTML>
<HEAD>
<TITLE> Sample Script </TITLE>
<STYLE>
body,td {font-size:12px}
</STYLE>
<SCRIPT LANGUAGE="JavaScript">
function msg() {
document.mailer.action = "mailto:"
mailtoandsubject = ((document.mailer.mailtoperson.options[document.mailer.mailtoperson.selectedIndex].value) + '?subject=' + document.mailer.subject.value);
}
</SCRIPT>
</HEAD>
<BODY>
<!----- 원하는 위치에 아래와 같이 코드를 붙여 넣으세요 ------->
<FORM NAME="mailer" METHOD="post" ACTION="" ENCTYPE="text/plain" onSubmit="(document.mailer.action += mailtoandsubject)">
<TABLE BORDER=0 cellspacing=1 cellpadding=5 width=600 align=center>
<TR VALIGN="top" bordercolor="#999999">
<TD width=100 align=right>받는사람 </TD>
<TD><SELECT NAME="mailtoperson" onChange="msg(this.form)">
<OPTION VALUE="snfl1005@nate.com">-- 운영자 --
<OPTION VALUE="snfl1005@nate.com">
<OPTION VALUE="snfl1005@nate.com">
<OPTION VALUE="">
</SELECT></TD>
</TR>
<TR VALIGN="top">
<TD align=right>보내는 사람 </TD>
<TD><INPUT TYPE="text" SIZE=45 NAME="name" onChange="msg(this.form)"></TD>
</TR>
<TR VALIGN="top">
<TD align=right>E-mail </TD>
<TD><INPUT TYPE="text" SIZE=45 NAME="email" onChange="msg(this.form)"></TD>
</TR>
<TR VALIGN="top">
<TD align=right>옵션 </TD>
<TD bgColor=white>
<SELECT NAME="priority" onChange="msg(this.form)">
<OPTION VALUE="Normal">보통
<OPTION VALUE="Urgent">긴급
<OPTION VALUE="No Reply Needed">답장필요 없슴
</SELECT></TD>
</TR>
<TR VALIGN="top">
<TD align=right>제목 </TD>
<TD><INPUT TYPE="text" SIZE=45 NAME="subject" onChange="msg(this.form)"></TD>
</TR>
<TR VALIGN="top">
<TD align=right>내용 </TD>
<TD><TEXTAREA NAME="message" COLS=45 ROWS=5 WRAP="virtual" OnChange="msg(this.form)"></TEXTAREA></TD>
</TR>
<TR>
<TD colspan=2 bgColor=white align=center>
<INPUT TYPE="submit" VALUE=" 보내기 ">
<INPUT TYPE="reset" VALUE=" 다시쓰기 "></TD>
</TR>
</TABLE>
</FORM>
<!------------------ 여기까지 -------------->
</BODY>
</HTML>
<FORM NAME="mailer" METHOD="post" ACTION="" ENCTYPE="text/plain" onSubmit="return msg();">
이렇게 고치시면되요