VB
2020. 4. 15. 09:03
Dim WinHttp As New WinHttp.WinHttpRequest
Private Sub Command1_Click()
WinHttp.Open "POST", "http://smartfile.co.kr/member/loginCheck.php"
WinHttp.SetRequestHeader "Referer", "http://smartfile.co.kr"
WinHttp.SetRequestHeader "Content-Type", "application/x-www-form-urlencoded"
WinHttp.Send "Frame_login=Ok&keep=Y&m_id=" & Text1 & "&m_pwd=" & Text2 & "&idSave=0"
If InStr(StrConv(WinHttp.ResponseBody, vbUnicode), "등록된 회원이 아닙니다.") Then
MsgBox "등록된 회원이 아니당", 16, ""
ElseIf InStr(StrConv(WinHttp.ResponseBody, vbUnicode), "비밀번호") Then
MsgBox "비번이 정확하지않당", 16, ""
Else
MsgBox "로그인성공", 64, ""
End If
End Sub
'VB' 카테고리의 다른 글
[VB] 인터넷창 띄우기 (소스) (0) | 2020.04.15 |
---|---|
[VB] 랜덤숫자을 출력해보자 (0) | 2020.04.15 |
[VB] 다음 로그인 소스 (0) | 2020.04.15 |
[VB] 한글판 패치하기 (0) | 2020.04.15 |