묻고답하기
폼 메일인데 결과물점 봐주세요
2004.04.28 10:32
<html>
<head>
<title>운동별 체크하기</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<link rel="stylesheet" href="images/style.css">
<script language="javascript">
<!--
function sendit() {
if (document.form.name.value == ""){
alert("이름을 입력하세요!")
document.form.name.focus();
return ;
}
else if(document.form.tel.value==""){
alert("전화번호를 입력하세요!")
document.form.tel.focus();
return ;
}
else if(document.form.email.value==""){
alert("e-mail주소를 입력하세요!")
document.form.email.focus();
return ;
}
document.form.submit();
return true;
}
//-->
</script>
</head>
<body>
<table width="600" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="top"><form name="form" method="post" action="web_2.php">
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="Back4"><table width="600" border="0" cellspacing="1" cellpadding="3">
<tr class="Back5">
<td colspan="4">의뢰인 정보</td>
</tr>
<tr class="Back5">
<td width="45">이름</td>
<td width="235"><input name="name" type="text" class="Line1" size="20"></td>
<td width="61">전화번호</td>
<td width="230"><input name="tel" type="text" class="Line1" size="20"></td>
</tr>
<tr class="Back5">
<td>E-mail </td>
<td><input name="email" type="text" class="Line1" size="20"></td>
<td>운동체크</td>
<td>매일산책한다
<input type="radio" name="radiobutton" value="라디오 단추">
전혀안한다
<input type="radio" name="radiobutton" value="라디오 단추"></td>
</tr>
</table></td>
</tr>
<tr>
<td class="Back5"><table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="Back4"><table width="600" border="0" cellspacing="1" cellpadding="3">
<tr>
<td class="Back5">기타 의견</td>
</tr>
<tr>
<td align="center" class="Back5"><textarea name="textarea" cols="70" rows="10" class="Line1"></textarea>
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td class="Back5"> </td>
</tr>
<tr>
<td class="Back5"><table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><input type="button" name="button" onclick=sendit() value="작성완료"></td>
</tr>
</table></td>
</tr>
</table>
</form></td>
</tr>
</table>
디버깅은 간단히 넘어온 radiobutton 이라는 변수를 출력해보면 됩니다.
2. textarea에 있는 class="...." 부분을 삭제하세요.
3. 결과 그림이 안보여서 잘 모르겠네요.