폼메일 질문 드립니다.
본문
인터넷에 돌아다니는 폼메일 소스를 구해서 사용중인데요 (잘됩니다)
항목을 추가하고싶은데....
아래 이미지처럼 (좌측 제목은 이미지라서 제가 수정 가능합니다.)
두개정도만 추가하려고 하는데 어떻게 하면 될까요??
폼.html 과 데이터.php
이렇게 두가지 파일이 있습니다
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<SCRIPT LANGUAGE="JavaScript">
<!--
function chkMailFrm() {
var f = document.formmail;
if (!f.title.value) {
alert("제목을 입력해주세요");
f.title.focus();
return false;
}
if (!f.senduser.value) {
alert("이름을 입력해주세요");
f.senduser.focus();
return false;
}
if (!f.phone.value) {
alert("전화번호을 입력해주세요");
f.phone.focus();
return false;
}
if (!f.email.value) {
alert("이메일을 입력해주세요");
f.email.focus();
return false;
}
}
//-->
</SCRIPT>
</head>
<body>
<form name="formmail" method="get" action="/form/data.php" onSubmit="return chkMailFrm()">
<a name=01></a>
<table width="0" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/back_1.jpg" width="568" height="19" /></td>
</tr>
<tr>
<td><table width="0" border="0" cellspacing="0" cellpadding="0" >
<tr>
<td><img src="images/back_3.jpg" width="21" height="472" /></td>
<td width="525" align="center">
<table width="100" border="0" cellpadding="0" cellspacing="5">
<tr>
<td width="100" align="right"><font color="#663300"><img src="images/form_1.jpg" /></font></td>
<td width="500" align="left"><input type="text" style="BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid; WIDTH: 350px; COLOR: #333333; BORDER-BOTTOM: #cccccc 1px solid; HEIGHT: 20px" name="title"
size="32" /></td>
</tr>
<tr>
<td align="right"><img src="images/form_2.jpg" /></td>
<td align="left"><input type="text" style="BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid; WIDTH: 350px; COLOR: #333333; BORDER-BOTTOM: #cccccc 1px solid; HEIGHT: 20px" name="senduser"
size="32" /></td>
</tr>
<tr>
<td align="right"><img src="images/form_3.jpg" /></td>
<td align="left"><input type="text" style="BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid; WIDTH: 350px; COLOR: #333333; BORDER-BOTTOM: #cccccc 1px solid; HEIGHT: 20px" name="phone"
size="32" /></td>
</tr>
<tr>
<td align="right"><img src="images/form_4.jpg" /></td>
<td align="left"><input type="text" style="BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid; WIDTH: 350px; COLOR: #333333; BORDER-BOTTOM: #cccccc 1px solid; HEIGHT: 20px" name="email"
size="32"/ ></></td>
</tr>
<tr>
<td align="center"><font color="#663300"><img src="images/form_5.jpg" /> </font></td>
<td align="left"><textarea style="BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid; WIDTH: 350px; COLOR: #333333; BORDER-BOTTOM: #cccccc 1px solid; HEIGHT: 198px" name="body"
rows="5" cols="26"></textarea></td>
</tr>
<tr align="left">
<td colspan="2"> </td>
</tr>
<tr>
<td> </td>
<td align="right"><input name="submit" type="image" value="신청하기" src="images/ok.jpg" />
<a onclick="reset();"><img src="images/can.jpg" border="0" /></a></td>
</tr>
</table></td>
<td><img src="images/back_4.jpg" width="22" height="472" /></td>
</tr>
</table>
</td>
</tr>
<tr>
<td><img src="images/back_2.jpg" width="568" height="19" /></td>
</tr>
</table>
</form>
</body>
</html>