묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
좀 도와주세요~~~
2003.11.27 02:06
아래 소스는 주문서 소스인데여...
주문하기 버튼을 누르면 필수항목을 안적었는데도 바로 넘아가네여...
그래서 필수 항목을 반드시 적어야만 넘어가게 할려면 어떻게 하면되죠?
alert()함수를 어떻게 써야 하는지....알려주세요..
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title>주문서</title>
<meta name="generator" content="Namo WebEditor v3.0">
<head>
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red" leftmargin="5"
topmargin="5" marginwidth="5" marginheight="5">
<p>
<table border cellpadding="0" cellspacing="0" width="650" bordercolor="#DAE0F0"
bordercolordark="white" bordercolorlight="#DAE0F0" style="border-width:1px; border-color:teal; border-style:solid;">
<tr>
<td width="126" height="30" bgcolor="#E6F2F4"><form name="mail" method="post"
action="../FORM/form.cgi" enctype="multipart/form-data">
<input type=hidden name="LocalConfig" value="Default"> <p align="left"
style="margin-left:1mm;"><font size="2"><b>성 명 </b></font><font
size="2" color="fuchsia">(필수)</font> </td>
<td width="518" height="30" colspan="3"><p style="margin-left:2mm;"><font
size="2"><input type="text" name="성명" size="30"> </font></td>
</tr>
<tr>
<td width="126" height="30" bgcolor="#E6F2F4"><p align="left" style="margin-left:1mm;"><font
size="2"><b>E-Mail </b></font><font size="2" color="fuchsia">(필수)</font>
</td>
<td width="518" height="30" colspan="3"><p style="margin-left:2mm;"><font
size="2"><input type="text" name="E-mail" size="30"> </font></td>
</tr>
<tr>
<td width="126" height="30" bgcolor="#E6F2F4"><p align="left" style="margin-left:1mm;"><font
size="2"><b>전화번호 </b></font><font size="2" color="fuchsia">(필수)</font>
</td>
<td width="203" height="30"><p style="margin-left:2mm;"><font size="2"><input
type="text" name="전화번호"> </font></td>
<td width="110" height="30" bgcolor="#E6F2F4"><p align="center" style="margin-left:2mm;"><font
size="2"><b>휴대전화 </b></font></td>
<td width="201" height="30"><p style="margin-left:2mm;"><font size="2"><input
type="text" name="휴대전화"> </font></td>
</tr>
<tr>
<td width="126" height="27" bgcolor="#E6F2F4"><p><font size="2"><b> 준공일자</b></font></td>
<td width="518" height="27" colspan="3"><p style="margin-left:2mm;"><font
size="2"><input type="text" name="준공일자"></font></td>
</tr>
<tr>
<td width="126" height="30" bgcolor="#E6F2F4"><p><font size="2"><b> 주소</b></font></td>
<td width="518" height="30" colspan="3"><p style="margin-left:2mm;"><font
size="2"><input type="text" name="주소" size="66"></font></td>
</tr>
<tr>
<td width="126" height="174" bgcolor="#E6F2F4"><p align="left" style="margin-left:1mm;"><font
size="2"><b>남기실말씀</b></font> </td>
<td width="518" height="174" colspan="3"><p style="margin-left:2mm;"><font
size="2"><textarea name="남기실 말씀" rows="10" cols="71"> </textarea>
</font></td>
</tr>
<tr>
<td width="646" height="30" align="center" colspan="4"><p><input type="submit"
value="작성완료" onclick="send()"> <input type="reset" value="다시쓰기"><br>
</td>
</tr>
</table>
</form>
주문하기 버튼을 누르면 필수항목을 안적었는데도 바로 넘아가네여...
그래서 필수 항목을 반드시 적어야만 넘어가게 할려면 어떻게 하면되죠?
alert()함수를 어떻게 써야 하는지....알려주세요..
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title>주문서</title>
<meta name="generator" content="Namo WebEditor v3.0">
<head>
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red" leftmargin="5"
topmargin="5" marginwidth="5" marginheight="5">
<p>
<table border cellpadding="0" cellspacing="0" width="650" bordercolor="#DAE0F0"
bordercolordark="white" bordercolorlight="#DAE0F0" style="border-width:1px; border-color:teal; border-style:solid;">
<tr>
<td width="126" height="30" bgcolor="#E6F2F4"><form name="mail" method="post"
action="../FORM/form.cgi" enctype="multipart/form-data">
<input type=hidden name="LocalConfig" value="Default"> <p align="left"
style="margin-left:1mm;"><font size="2"><b>성 명 </b></font><font
size="2" color="fuchsia">(필수)</font> </td>
<td width="518" height="30" colspan="3"><p style="margin-left:2mm;"><font
size="2"><input type="text" name="성명" size="30"> </font></td>
</tr>
<tr>
<td width="126" height="30" bgcolor="#E6F2F4"><p align="left" style="margin-left:1mm;"><font
size="2"><b>E-Mail </b></font><font size="2" color="fuchsia">(필수)</font>
</td>
<td width="518" height="30" colspan="3"><p style="margin-left:2mm;"><font
size="2"><input type="text" name="E-mail" size="30"> </font></td>
</tr>
<tr>
<td width="126" height="30" bgcolor="#E6F2F4"><p align="left" style="margin-left:1mm;"><font
size="2"><b>전화번호 </b></font><font size="2" color="fuchsia">(필수)</font>
</td>
<td width="203" height="30"><p style="margin-left:2mm;"><font size="2"><input
type="text" name="전화번호"> </font></td>
<td width="110" height="30" bgcolor="#E6F2F4"><p align="center" style="margin-left:2mm;"><font
size="2"><b>휴대전화 </b></font></td>
<td width="201" height="30"><p style="margin-left:2mm;"><font size="2"><input
type="text" name="휴대전화"> </font></td>
</tr>
<tr>
<td width="126" height="27" bgcolor="#E6F2F4"><p><font size="2"><b> 준공일자</b></font></td>
<td width="518" height="27" colspan="3"><p style="margin-left:2mm;"><font
size="2"><input type="text" name="준공일자"></font></td>
</tr>
<tr>
<td width="126" height="30" bgcolor="#E6F2F4"><p><font size="2"><b> 주소</b></font></td>
<td width="518" height="30" colspan="3"><p style="margin-left:2mm;"><font
size="2"><input type="text" name="주소" size="66"></font></td>
</tr>
<tr>
<td width="126" height="174" bgcolor="#E6F2F4"><p align="left" style="margin-left:1mm;"><font
size="2"><b>남기실말씀</b></font> </td>
<td width="518" height="174" colspan="3"><p style="margin-left:2mm;"><font
size="2"><textarea name="남기실 말씀" rows="10" cols="71"> </textarea>
</font></td>
</tr>
<tr>
<td width="646" height="30" align="center" colspan="4"><p><input type="submit"
value="작성완료" onclick="send()"> <input type="reset" value="다시쓰기"><br>
</td>
</tr>
</table>
</form>