Files
2026-02-23 10:01:00 +09:00

24 lines
762 B
Plaintext

<!--#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%>