Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 2nd, 2004, 04:45 PM
Registered User
 
Join Date: Jul 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Post to a web page and manipulate results

I want to be able to fill in a web form from VB 6. I also want to be able to capture the HTML results (in a text string for example) after the the form is posted. Any help would be greatly appreciated.

 
Old July 23rd, 2004, 10:14 AM
Registered User
 
Join Date: Jul 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Partial answer for you.

First launch a browser to the website

Dim web As WebBrowser

Private Sub Form_Load()
Set web = New WebBrowser
Set web = CreateObject("internetexplorer.application")
web.Navigate2 "http://website address/"
web.Visible = True
End Sub

Second fill in the form

Private Sub FillForm()
   web.Visible = True
   web.Document.Forms(0).USERID.Value = "111111"
   web.Document.Forms(0).PASSWORD.Value = "password"
End Sub

Thats where I get stuck myself.





Similar Threads
Thread Thread Starter Forum Replies Last Post
using perl send data via "post" to a php web page robprell Perl 1 May 14th, 2007 05:57 AM
How to diplay web page inside another web page win cyberjoe C# 2 March 1st, 2007 05:35 AM
post result on a different page Sheikha ADO.NET 2 September 12th, 2004 10:24 PM
X Results per Page acdsky Classic ASP Databases 2 June 21st, 2004 10:38 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.