묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
asp 회원가입부분...
2004.10.18 11:46
<html>
<head>
<title>뱃살공주는 울랄라~♥</title>
<link rel="stylesheet" type="text/css" href="../ssoo.css">
<script language="javascript">
<!--
function sendform()
{
if(document.myform.u_id.value=="")
{
alert("아이디를 입력해주세요")
document.myform.u_id.focus();
return false;
}
if(document.myform.u_name.value=="")
{
alert("이름을 입력해주세요")
document.myform.u_name.focus();
return false;
}
if(document.myform.u_tel.value=="")
{
alert("전화번호를 입력해주세요")
document.myform.u_tel.focus();
return false;
}
if(document.myform.u_addr.value=="")
{
alert("주소를 입력해주세요")
document.myform.u_addr.focus();
return false;
}
if(document.myform.u_email.value=="")
{
alert("E-mail을 입력해주세요")
document.myform.u_email.focus();
return false;
}
if(document.myform.u_home.value=="")
{
alert("Homepage를 입력해주세요")
document.myform.u_home.focus();
return false;
}
if(document.myform.u_ju1.value=="")
{
alert("주민번호를 입력해주세요")
document.myform.u_ju1.focus();
return false;
}
if(document.myform.u_ju2.value=="")
{
alert("주민번호를 입력해주세요")
document.myform.u_ju2.focus();
return false;
}
if(document.myform.u_content.value=="")
{
alert("자기를 간단히 소개해주세요^ㅁ^")
document.myform.u_content.focus();
return false;
}
if(document.myform.u_pass.value=="")
{
alert("비밀번호를 입력해주세요")
document.myform.u_pass.focus();
return false;
}
if(document.myform.u_pass.value!=document.myform.u_pass2.value)
{
alert("비밀번호가 일치하지 않습니다!
다시 확인해주세요!!")
document.myform.u_pass.value=""
document.myform.u_pass2.value=""
document.myform.u_pass.focus();
return false;
document.myform.submit();
}
function checkid() <!--이넘은 아이디 중복체킹을 할 때 새로운 창 -->
{
var str
str=document.myform.u_id.value;
window.open("checkid.asp?u_id="+str,"checkid","scrollbars=no,resizeable=no,width=300,height=180");
}
}
//-->
</script>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr"></head>
<body>
<br><center>
한가족되기
<table border=0 bordercolor=blue cellsepacing=0 width=500>
<form action="joinok.asp" method="post" name="myform">
<tr>
<td bgcolor="#EFF8EF">아이디</td>
<td><input type="text" name="u_id" size="10">
<input type="button" value="중복체킹" onclick="checkid()">
</td>
</tr>
<tr>
<td bgcolor="#EFF8EF">이름</td>
<td><input type="text" name="u_name">
</td>
</tr>
<tr>
<td bgcolor="#EFF8EF">Tel</td>
<td><input type="text" name="u_tel">
</td>
</tr>
<tr>
<td bgcolor="#EFF8EF">주소</td>
<td><input type="text" name="u_addr" size="40">
</td>
</tr>
<tr>
<td bgcolor="#EFF8EF">E-mail</td>
<td><input type="text" name="u_email">
</td>
</tr>
<tr>
<td bgcolor="#EFF8EF">Homepage</td>
<td><input type="text" name="u_home" size="40">
</td>
</tr>
<tr>
<td bgcolor="#EFF8EF">주민번호</td>
<td><input type="text" name="u_ju1" size="6 maxlength=6">-
<input type="text" name="u_ju2" size="7" maxlength="7">
</td>
</tr>
<tr>
<td bgcolor="#EFF8EF">자기소개</td>
<td><textarea name="u_content" cols="50" rows="10"></textarea>
</td>
</tr>
<tr>
<td bgcolor="#EFF8EF">비밀번호</td>
<td><input type="password" name="u_pass">
</td>
</tr>
<tr>
<td bgcolor="#EFF8EF">비밀번호 확인</td>
<td><input type="password" name="u_pass2">
</td>
</tr>
<tr>
<td colspan="2">
<input type="submit" onclick="sendform()" value="입력완료">
<input type="reset" value="다시입력">
</td>
</tr>
</form>
</table>
</body>
</html>
위에껀...회원가입하는 건데
중복 체크 부분이 계속 오류가 나네요..ㅜ.ㅜ
중복체크 버튼을 누르면 페이지가 잘못되었습니다....;라고 밑에 상태표시줄에 생기구요...
자바스크립트가 잘못된건지......asp가 잘못된건지..
으앙~함봐주세여~
<head>
<title>뱃살공주는 울랄라~♥</title>
<link rel="stylesheet" type="text/css" href="../ssoo.css">
<script language="javascript">
<!--
function sendform()
{
if(document.myform.u_id.value=="")
{
alert("아이디를 입력해주세요")
document.myform.u_id.focus();
return false;
}
if(document.myform.u_name.value=="")
{
alert("이름을 입력해주세요")
document.myform.u_name.focus();
return false;
}
if(document.myform.u_tel.value=="")
{
alert("전화번호를 입력해주세요")
document.myform.u_tel.focus();
return false;
}
if(document.myform.u_addr.value=="")
{
alert("주소를 입력해주세요")
document.myform.u_addr.focus();
return false;
}
if(document.myform.u_email.value=="")
{
alert("E-mail을 입력해주세요")
document.myform.u_email.focus();
return false;
}
if(document.myform.u_home.value=="")
{
alert("Homepage를 입력해주세요")
document.myform.u_home.focus();
return false;
}
if(document.myform.u_ju1.value=="")
{
alert("주민번호를 입력해주세요")
document.myform.u_ju1.focus();
return false;
}
if(document.myform.u_ju2.value=="")
{
alert("주민번호를 입력해주세요")
document.myform.u_ju2.focus();
return false;
}
if(document.myform.u_content.value=="")
{
alert("자기를 간단히 소개해주세요^ㅁ^")
document.myform.u_content.focus();
return false;
}
if(document.myform.u_pass.value=="")
{
alert("비밀번호를 입력해주세요")
document.myform.u_pass.focus();
return false;
}
if(document.myform.u_pass.value!=document.myform.u_pass2.value)
{
alert("비밀번호가 일치하지 않습니다!
다시 확인해주세요!!")
document.myform.u_pass.value=""
document.myform.u_pass2.value=""
document.myform.u_pass.focus();
return false;
document.myform.submit();
}
function checkid() <!--이넘은 아이디 중복체킹을 할 때 새로운 창 -->
{
var str
str=document.myform.u_id.value;
window.open("checkid.asp?u_id="+str,"checkid","scrollbars=no,resizeable=no,width=300,height=180");
}
}
//-->
</script>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr"></head>
<body>
<br><center>
한가족되기
<table border=0 bordercolor=blue cellsepacing=0 width=500>
<form action="joinok.asp" method="post" name="myform">
<tr>
<td bgcolor="#EFF8EF">아이디</td>
<td><input type="text" name="u_id" size="10">
<input type="button" value="중복체킹" onclick="checkid()">
</td>
</tr>
<tr>
<td bgcolor="#EFF8EF">이름</td>
<td><input type="text" name="u_name">
</td>
</tr>
<tr>
<td bgcolor="#EFF8EF">Tel</td>
<td><input type="text" name="u_tel">
</td>
</tr>
<tr>
<td bgcolor="#EFF8EF">주소</td>
<td><input type="text" name="u_addr" size="40">
</td>
</tr>
<tr>
<td bgcolor="#EFF8EF">E-mail</td>
<td><input type="text" name="u_email">
</td>
</tr>
<tr>
<td bgcolor="#EFF8EF">Homepage</td>
<td><input type="text" name="u_home" size="40">
</td>
</tr>
<tr>
<td bgcolor="#EFF8EF">주민번호</td>
<td><input type="text" name="u_ju1" size="6 maxlength=6">-
<input type="text" name="u_ju2" size="7" maxlength="7">
</td>
</tr>
<tr>
<td bgcolor="#EFF8EF">자기소개</td>
<td><textarea name="u_content" cols="50" rows="10"></textarea>
</td>
</tr>
<tr>
<td bgcolor="#EFF8EF">비밀번호</td>
<td><input type="password" name="u_pass">
</td>
</tr>
<tr>
<td bgcolor="#EFF8EF">비밀번호 확인</td>
<td><input type="password" name="u_pass2">
</td>
</tr>
<tr>
<td colspan="2">
<input type="submit" onclick="sendform()" value="입력완료">
<input type="reset" value="다시입력">
</td>
</tr>
</form>
</table>
</body>
</html>
위에껀...회원가입하는 건데
중복 체크 부분이 계속 오류가 나네요..ㅜ.ㅜ
중복체크 버튼을 누르면 페이지가 잘못되었습니다....;라고 밑에 상태표시줄에 생기구요...
자바스크립트가 잘못된건지......asp가 잘못된건지..
으앙~함봐주세여~
모든 alert 뒤에 ; 를 빠트리셨네요.
; 를 치신후 다시해 보세요