|
-
Dec 3rd, 2007, 09:35 PM
#1
Thread Starter
Fanatic Member
login to a website
hi,
is there any sample how to login to a website?
for example:
in form have two textbox one is for email and one is for password then a Button 'LOGIN' once it click open to any default web browser by computer and start browsing.. like in yahoo.com
regards,
-
Dec 3rd, 2007, 10:07 PM
#2
Re: login to a website
You should be able to login to a perticuler website or any website ?
-
Dec 4th, 2007, 01:03 AM
#3
Re: login to a website
You can also use the Inet control.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Dec 4th, 2007, 03:20 AM
#4
Thread Starter
Fanatic Member
Re: login to a website
 Originally Posted by RobDog888
You can also use the Inet control.
yes. but i am looking an example project in vb 
@Fazi
just only one website for example. www.yahoo.com (e-mail) login form
regards,
-
Dec 4th, 2007, 03:35 AM
#5
Re: login to a website
Here is an example...(the search feature is a great tool )
-
Dec 4th, 2007, 04:45 AM
#6
Re: login to a website
The inet control has properties that make setting the username and password very easy. Didnt think it needed an example.
Code:
Dim sDoc As String
Inet1.UserName = "Blah"
Inet1.Password = "1234"
sDoc = Inet1.OpenURL("http://yoursitetologinto.com?u=1234567890", icString)
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Dec 4th, 2007, 05:51 AM
#7
Thread Starter
Fanatic Member
Re: login to a website
 Originally Posted by RobDog888
The inet control has properties that make setting the username and password very easy. Didnt think it needed an example.
Code:
Dim sDoc As String
Inet1.UserName = "Blah"
Inet1.Password = "1234"
sDoc = Inet1.OpenURL("http://yoursitetologinto.com?u=1234567890", icString)
Rob. what is the components name in vb6? i cant find inet
-
Dec 4th, 2007, 05:55 AM
#8
Re: login to a website
Microsoft Internet Transfer Control
-
Dec 4th, 2007, 05:57 AM
#9
Re: login to a website
Note that your login url will may use a different argument identifier depending on the language used to write it.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Dec 4th, 2007, 06:09 AM
#10
Thread Starter
Fanatic Member
Re: login to a website
 Originally Posted by lintz
Microsoft Internet Transfer Control
Thanks lintz i tried your example but not working for me its giving me an error when im trying to click Login '('submit') i am trying to connect this web www.phonevolts.ie and also it is possible after clicking Login on vb program open the internet explorer or for example firefox and start browsing
Rob, thanks too i will try it
-
Dec 4th, 2007, 06:21 AM
#11
Re: login to a website
Seems like they disable the "View Source". The site is written in PHP.
Here are the desired elements.
Code:
<form id="loginbox" method="post" action="http://www.phonevolts.com/login.php?action=process&XTCsid=a6a58267ddf1a9ad38f12e3aaaf7ba83">
<input type="text" name="email_address" size="25" maxlength="50" />
<input type="password" name="password" maxlength="40" />
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Dec 4th, 2007, 06:22 AM
#12
Re: login to a website
Use this instead to submit your details.
vb Code:
WB1.Document.getElementById("loginbox").submit 'login button clicked
-
Dec 4th, 2007, 06:24 AM
#13
Re: login to a website
 Originally Posted by RobDog888
[color=navy]Seems like they disable the "View Source".
Not for me in either IE or FF
-
Dec 4th, 2007, 06:27 AM
#14
Re: login to a website
Didnt work for me on IE 7. Had to download the source with Inet.
The login id is a session guid I think as it changes.
action=process&XTCsid=a6a58267ddf1a9ad38f12e3aaaf7ba83
So only have to pass the "email_address" and "password" input elements values in the submitted form.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Dec 4th, 2007, 06:29 AM
#15
-
Dec 4th, 2007, 06:31 AM
#16
Re: login to a website
Just tried with IE 6 and nada still Oh well. I still got the source, just the hard way
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Dec 4th, 2007, 06:33 AM
#17
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|