Files
KON/capi/login_chk.asp_bak_250430_CNS
2026-08-07 12:53:18 +09:00

35 lines
955 B
Plaintext

<!-- #include Virtual="/include/Header.asp"-->
<!--#include virtual = "/Lib/RSExec.asp" -->
<%
Dim userid : userid = Request.Form("userid") '로그인 ID
Dim userpw : userpw = Request.Form("userpw") '로그인 PW
Dim UNAME
dim SQL, rs
DBConnect2()
SQL = " select USERNAME, USERID from kon.dbo.KON_CAPI_TB where USERNAME = '"& userid &"' and USERPHONE = '" & userpw & "' "
Set rs = DBExec(SQL,"kon")
If Not rs.EOF Then
UNAME = rs(0)
USERID = rs(1)
Call DBExecClose(rs)
session("MYUNID") = USERID
session("MYUNNAME") = UNAME
Response.Redirect "./user.asp"
Else
Call DBExecClose(rs)
Response.Write "<script type='text/javascript'>alert('입력하신 정보가 정확하지 않습니다.\n다시 한번 정확히 입력해 주시기 바랍니다');</script>"
Response.Redirect "./user_login.asp"
End If
Response.End
%>