최초등록
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<!--#include virtual = "/common/lib/dbcon.asp" -->
|
||||
<!--#include virtual = "/common/lib/func.asp" -->
|
||||
|
||||
<%
|
||||
m_id = inputValue(request("m_id"))
|
||||
|
||||
'동일아이디 체크
|
||||
'*****************************************
|
||||
sql = "select count(m_num) as id_chk from member where m_id='"&m_id&"'"
|
||||
Set Rs = Dbcon.Execute (sql)
|
||||
idcnt = CInt(Rs("id_chk"))
|
||||
rs.close : Set rs = nothing
|
||||
'*****************************************
|
||||
|
||||
If idcnt = 0 then
|
||||
%>
|
||||
alert("사용할 수 있는 아이디 입니다.");
|
||||
document.getElementById("frm").idchk.value = "Y";
|
||||
document.getElementById("frm").m_pwd.focus();
|
||||
<%else%>
|
||||
alert("[<%=m_id%>]은(는) 이미 사용중인 아이디 입니다.");
|
||||
document.getElementById("frm").idchk.value = "N";
|
||||
document.getElementById("frm").m_id.focus();
|
||||
<%End if%>
|
||||
Reference in New Issue
Block a user