묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
폼메일 사용하는데.....(재수정)
2003.05.30 14:05
<meta http-equiv='Content-Type' content='text/html; charset=euc-kr'>
<link rel="stylesheet" href="../6nd/css/style_common.css">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">
<?
// Sendmail 폼
if(!$mailsend)
{
?>
<table width="430" border="0" cellspacing="0" cellpadding="0" height="100%">
<form method='post' enctype='multipart/form-data' action='index.php?mailsend=send'>
<tr>
<td height="58"><img src="images/mailform_top.gif" width="430" height="58"></td>
</tr>
<tr>
<td valign="top" align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
<tr>
<td width="27" valign="top" background="images/mailform_leftbg.gif"><img src="images/mailform_left.gif" width="27" height="467"></td>
<td bgcolor="#F7F7F7" align="center" valign="top">
<table width="90%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="15"></td>
</tr>
<tr>
<td><img src="images/mailform_icon.gif" width="6" height="6" align="absmiddle">
<span class="en_4">Message to...</span></td>
</tr>
<tr>
<td height="10"></td>
</tr>
<tr>
<td>
<table border=0 cellpadding=2 cellspacing=1 width=100% bgcolor="#CED6DE">
<col width="65"></col><col width=""></col>
<tr>
<td bgcolor="DEE7F7" height="30" align="right" class="en_5">name </td>
<td bgcolor="#FFFFFF"> <input name=to_name size="15" class="input" style=width:92%></td>
</tr>
<tr bgcolor="#FFFFFF">
<td bgcolor="DEE7F7" align="right" height="30" class="en_5">email </td>
<td> <input name=to size="15" class="input" style=width:92%></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="20"></td>
</tr>
<tr>
<td><img src="images/mailform_icon.gif" width="6" height="6" align="absmiddle">
<span class="en_4">Message from...</span></td>
</tr>
<tr>
<td height="10"></td>
</tr>
<tr>
<td>
<table border=0 cellpadding=2 cellspacing=1 width=100% bgcolor="#CED6DE">
<col width="65"></col><col width=""></col>
<tr>
<td bgcolor="DEE7F7" height="30" align="right" class="en_5">name </td>
<td bgcolor="#FFFFFF">
<input name=from_name size="15" value='' class="input" style=width:92%>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td bgcolor="DEE7F7" align="right" height="30" class="en_5">email </td>
<td>
<input name=from size="15" class="input" style=width:92%>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td bgcolor="DEE7F7" align="right" height="30" class="en_5">subject </td>
<td>
<input name=subject size="15" class="input" style=width:92%>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td bgcolor="DEE7F7" align="right" height="30" class="en_5">memo </td>
<td>
<textarea name=message rows="12" class="textarea" style=width:92%></textarea>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td bgcolor="DEE7F7" align="right" height="30" class="en_5">file </td>
<td>
<input type=file size="15" name=userfile class="input" style=width:92%>
<!--<br>
<input type=file size="34" name=userfile2 class="input" style=width:92%>
<br>
<input type=file size="34" name=userfile3 class="input" style=width:92%>-->
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="15"></td>
</tr>
<tr>
<td align="center"><input type=submit name=submit value=' send ' class="bt_s"> <input name=Reset type=reset value=" cancle " class="bt_r"></td>
</tr>
<tr>
<td height="15"></td>
</tr>
</table>
</td>
<td background="images/mailform_rightbg.gif" width="24"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="55"><img src="images/mailform_bottom.gif" width="430" height="55"></td>
</tr>
</form>
</table>
<?
}
// 메일 프로그램 시작
if($mailsend==send)
{
// 에러
if(!$to || !$subject)
{
echo("
<script>
window.alert('받는 사람의 메일주소나 제목은 반드시 입력해 주시기 바랍니다.')
history.go(-1)
</script>
");
}
else
{
// 받는 사람 처리
$to = $to_name." <".$to.">";
// 헤더부분
$mailheader .= "Return-Path: $fromrn";
$mailheader .= "From: $from_name <$from>rn";
$mailheader .= "X-Mailer: Gfew Interfacern";
// 메일 전송
if($mailsend==choice)
{
echo("
<table width=430 border=0 cellspacing=0 cellpadding=0 height=100%>
<tr>
<td height=58><img src=images/mailform_top.gif width=430 height=58></td>
</tr>
<tr>
<td valign=top align=center>
<table width=100% border=0 cellspacing=0 cellpadding=0 height=100%>
<tr>
<td width=27 valign=top background=images/mailform_leftbg.gif><img src=images/mailform_left.gif width=27 height=467></td>
<td bgcolor=#F7F7F7 align=center class=en_5>The email was transmitted
successfully !<br>
<br>
<br>
<input type=button value=' back ' class=bt_s onclick=history.back()> <input type=button value=' close ' class=bt_r onclick=window.close();>
</td>
<td background=images/mailform_rightbg.gif width=24></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height=55><img src=images/mailform_bottom.gif width=430 height=55></td>
</tr>
</table>
");
}
?>
</body>
<link rel="stylesheet" href="../6nd/css/style_common.css">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">
<?
// Sendmail 폼
if(!$mailsend)
{
?>
<table width="430" border="0" cellspacing="0" cellpadding="0" height="100%">
<form method='post' enctype='multipart/form-data' action='index.php?mailsend=send'>
<tr>
<td height="58"><img src="images/mailform_top.gif" width="430" height="58"></td>
</tr>
<tr>
<td valign="top" align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
<tr>
<td width="27" valign="top" background="images/mailform_leftbg.gif"><img src="images/mailform_left.gif" width="27" height="467"></td>
<td bgcolor="#F7F7F7" align="center" valign="top">
<table width="90%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="15"></td>
</tr>
<tr>
<td><img src="images/mailform_icon.gif" width="6" height="6" align="absmiddle">
<span class="en_4">Message to...</span></td>
</tr>
<tr>
<td height="10"></td>
</tr>
<tr>
<td>
<table border=0 cellpadding=2 cellspacing=1 width=100% bgcolor="#CED6DE">
<col width="65"></col><col width=""></col>
<tr>
<td bgcolor="DEE7F7" height="30" align="right" class="en_5">name </td>
<td bgcolor="#FFFFFF"> <input name=to_name size="15" class="input" style=width:92%></td>
</tr>
<tr bgcolor="#FFFFFF">
<td bgcolor="DEE7F7" align="right" height="30" class="en_5">email </td>
<td> <input name=to size="15" class="input" style=width:92%></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="20"></td>
</tr>
<tr>
<td><img src="images/mailform_icon.gif" width="6" height="6" align="absmiddle">
<span class="en_4">Message from...</span></td>
</tr>
<tr>
<td height="10"></td>
</tr>
<tr>
<td>
<table border=0 cellpadding=2 cellspacing=1 width=100% bgcolor="#CED6DE">
<col width="65"></col><col width=""></col>
<tr>
<td bgcolor="DEE7F7" height="30" align="right" class="en_5">name </td>
<td bgcolor="#FFFFFF">
<input name=from_name size="15" value='' class="input" style=width:92%>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td bgcolor="DEE7F7" align="right" height="30" class="en_5">email </td>
<td>
<input name=from size="15" class="input" style=width:92%>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td bgcolor="DEE7F7" align="right" height="30" class="en_5">subject </td>
<td>
<input name=subject size="15" class="input" style=width:92%>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td bgcolor="DEE7F7" align="right" height="30" class="en_5">memo </td>
<td>
<textarea name=message rows="12" class="textarea" style=width:92%></textarea>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td bgcolor="DEE7F7" align="right" height="30" class="en_5">file </td>
<td>
<input type=file size="15" name=userfile class="input" style=width:92%>
<!--<br>
<input type=file size="34" name=userfile2 class="input" style=width:92%>
<br>
<input type=file size="34" name=userfile3 class="input" style=width:92%>-->
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="15"></td>
</tr>
<tr>
<td align="center"><input type=submit name=submit value=' send ' class="bt_s"> <input name=Reset type=reset value=" cancle " class="bt_r"></td>
</tr>
<tr>
<td height="15"></td>
</tr>
</table>
</td>
<td background="images/mailform_rightbg.gif" width="24"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="55"><img src="images/mailform_bottom.gif" width="430" height="55"></td>
</tr>
</form>
</table>
<?
}
// 메일 프로그램 시작
if($mailsend==send)
{
// 에러
if(!$to || !$subject)
{
echo("
<script>
window.alert('받는 사람의 메일주소나 제목은 반드시 입력해 주시기 바랍니다.')
history.go(-1)
</script>
");
}
else
{
// 받는 사람 처리
$to = $to_name." <".$to.">";
// 헤더부분
$mailheader .= "Return-Path: $fromrn";
$mailheader .= "From: $from_name <$from>rn";
$mailheader .= "X-Mailer: Gfew Interfacern";
// 메일 전송
if($mailsend==choice)
{
echo("
<table width=430 border=0 cellspacing=0 cellpadding=0 height=100%>
<tr>
<td height=58><img src=images/mailform_top.gif width=430 height=58></td>
</tr>
<tr>
<td valign=top align=center>
<table width=100% border=0 cellspacing=0 cellpadding=0 height=100%>
<tr>
<td width=27 valign=top background=images/mailform_leftbg.gif><img src=images/mailform_left.gif width=27 height=467></td>
<td bgcolor=#F7F7F7 align=center class=en_5>The email was transmitted
successfully !<br>
<br>
<br>
<input type=button value=' back ' class=bt_s onclick=history.back()> <input type=button value=' close ' class=bt_r onclick=window.close();>
</td>
<td background=images/mailform_rightbg.gif width=24></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height=55><img src=images/mailform_bottom.gif width=430 height=55></td>
</tr>
</table>
");
}
?>
</body>
댓글 3
-
9000㎒ :-)
2003.05.30 17:35
-
TheMics
2003.05.30 18:47
쿠키와는 무관하구요..
<input name=to size="15" class="input" style=width:92%>
<input name=to_name size="15" class="input" style=width:92%>
를 각각
<input name=to size="15" class="input" style=width:92% value="주소" readonly>
<input name=to_name size="15" class="input" style=width:92% value="이름" readonly>
로 고쳐 주시면 됩니다. 사실 히든폼을 추천하지만 답변하기 곤란해 이걸로 하겠습니다. -
튀니
2003.05.30 19:30
만약 주소/이름 폼을 완전히 없애고 싶다면....
알려드리고 싶은데 소스 정리좀 하시지요.한줄한줄 띄어서 눈에 -_-a 하나도 안들어오네요.
도움 안되서 죄송합니다.