| View previous topic :: View next topic |
| Author |
Message |
Golden Wing Grandmaster Cheater
Reputation: 0
Joined: 29 Aug 2007 Posts: 905
|
Posted: Sat Jan 31, 2009 7:07 pm Post subject: [Vb6] Logging Into A Account |
|
|
How do i log into a account on a website though VB6?
Example:
I have a user name and password text box then when i enter my information it logs me into the site from vb6.
|
|
| Back to top |
|
 |
SXGuy I post too much
Reputation: 0
Joined: 19 Sep 2006 Posts: 3551
|
Posted: Sun Feb 01, 2009 4:51 am Post subject: |
|
|
why does everyone think vb6 is the answer to everything else?
ever tried php? its quite easy
create a login form with html, and then the submit button will send the username and pass
| Code: | <form method="post" action="processlogin.php">
<table width="80%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<div align="right"><font face="Verdana, Arial, Helvetica, sans-serif" size="-1">Login
:</font></div>
</td>
<td> <font face="Verdana, Arial, Helvetica, sans-serif" size="-1">
<input type="text" name="formlogin" size="15">
</font></td>
</tr>
<tr>
<td>
<div align="right"><font face="Verdana, Arial, Helvetica, sans-serif" size="-1">Password
:</font></div>
</td>
<td> <font face="Verdana, Arial, Helvetica, sans-serif" size="-1">
<input type="password" name="formpassword" size="15">
</font></td>
</tr>
</table>
<input type="submit" name="Submit" value="Login"> |
So when you input your username and password and press submit, it sends the info to the page you specify at the top of the form.
the page that grabs the username and pass will store the two inputs as variables
$_GET['formlogin'];
$_GET['formpassword'];
Tell me something, are you actually planning to write a website in vb6???
|
|
| Back to top |
|
 |
Odecey Master Cheater
Reputation: 1
Joined: 19 Apr 2007 Posts: 259 Location: Scandinavia
|
Posted: Sun Feb 01, 2009 5:17 am Post subject: |
|
|
I know that this isn't in VB6, but considering there are VB->C# translators out there I thought it might be of some use anyway: C# Automatic login.
_________________
Never confuse activity with productivity. You can be busy without a purpose, but what's the point?- Rick Warren |
|
| Back to top |
|
 |
Uli Cheater
Reputation: 0
Joined: 08 Mar 2008 Posts: 37
|
Posted: Sun Feb 01, 2009 9:05 am Post subject: |
|
|
hopefully this should work:
| Code: | Dim strHTML As String
strHTML = Wrapper.PostWrapper("login.website.com/login.php", "username=" & Username.Text & "&password=" & Password.Text & "&frob=&token=&redirect=http%3A%2F%2Fwww.website.com%2F&chap=", "http://www.website.com") |
obviously add in the website you want etc
|
|
| Back to top |
|
 |
NINTENDO Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Nov 2007 Posts: 1371
|
Posted: Sat Feb 07, 2009 6:09 pm Post subject: |
|
|
Build a loginstring as said before or try to find the id of the controls and use getelementbyid to modify the value.
_________________
Intel over amd yes. |
|
| Back to top |
|
 |
|