Link to home
Start Free TrialLog in
Avatar of Catouch
Catouch

asked on

Getting/Sending info to internet

Hi Experts,

I need to create a program in VB where i can connect to a web site, pass on a user name and pwd to that site and get back an integer that says if my pwd was accepted.
How can I do this?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of robbert
robbert

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Create a DLL with some validation code.
Pass the return parameters using variants:

Public Function CheckLogin(ByVal sUserName As String, ByVal sPassword As String) As Variant

'some coding for checking here

    CheckLogin = bLoggedInOk

End Function

Put the DLL in MTS on the IIS server.

Create an asp page for a login.
In the submit of the form do something like:

Dim oLogin, bResult
Set oLogin = Server.CreateObject("LoginDLL")

bResult = CBool(oLogin.CheckLogin(window.txtLogin.Value, window.txtPassword.Value))

If Not bResult Then
  window.location = "loginfailure.asp"
Else
  window.location = "loginsuccesfull.asp"
End If

D'Mzzl!
RoverM
Avatar of Catouch
Catouch

ASKER

Hi Robbert, thanks for the help, it's what I need.
I'll leave this quesion open for a while, but I'll give you the points.
Do you know of any methods like that to post a file on the server?

Thanks allready

Catouch
Avatar of Catouch

ASKER

Found everything i needed,
Thanks