PDA

Click to See Complete Forum and Search --> : Get Username & Passwords to Login from Webpage [Help]


L3mmy
Jun 15th, 2008, 08:04 AM
Hey, I'm making a Program, and i want it to Connect to a Webpage that will contain the username and passwords/emails and if the username & Password is there then login, How can i do this? i'm not too good at this Part of it all.

DigiRev
Jun 15th, 2008, 11:51 AM
It all depends on what web page it is. Can you post the URL?

L3mmy
Jun 15th, 2008, 02:19 PM
The Webpage will just be formatted like this

ID, username, email, password
ID, username, email, password
ID, username, email, password
ID, username, email, password

ID - Member Number.
Either HTML or PHP, Whichever is easyer and faster for this stuff
Just need help to get that info and register that info? for new user

mendhak
Jun 18th, 2008, 02:34 PM
Do you need to do this against a form? Submit it?

What language are you using?

L3mmy
Jun 18th, 2008, 04:42 PM
I'm in VB6 or 2008, I want the User to fill in some Textbox's with details, then when they click submit..if the user pass is in the webpage and its a user then login.//

DigiRev
Jun 19th, 2008, 05:31 PM
Ok, just to clarify...

The webpage has a list of valid usernames/passwords/emails, etc.

When someone logs in on your program, your program checks to see if the username/password they entered is on that webpage.

If it is, they are logged in.

Is that correct?

The best way would be to setup a PHP file on the website. And you pass it a username/password like this:

http://www.mysite.com/login.php?user=USERNAME&password=PASSWORD

Then the PHP page looks up that USERNAME and PASSWORD in the database. If it is there, it prints something like "Valid login" on the page, otherwise, "Invalid login".

This is more secure than just having a list of valid logins in public view on a webpage.

This is also pretty easy to setup. Does your server support PHP and MySQL?