Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
POST data to server
Message
 
To
11/01/2000 10:12:14
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00316160
Message ID:
00316210
Views:
18
>Is it Possible ?
>
>How Can I use VFP to connect to a URL fill in the fields and post the
>data to the server just like if I was doing it with the keyboard ?
>
>Many Thanks
>
>Xavier

You can do this with VFP without wwipstuff. You have to look up the names of the different textboxes on the site. Some code example to start IE, navigate to UT, log in and quit IE.

oie=createobject("internetexplorer.application")
oie.visible=.t.
oie.navigate("www.levelextreme.com")
do while not oie.readystate=4
enddo
oie.document.forms(0).key.value="Yourname" &&Put your username here
oie.document.forms(0).password.value="Yourpassword" &&Put your password here
oie.document.forms(0).submit()
do while not oie.readystate=4
enddo
oie.quit
release oie

Pierre Unge, Sweden
------------- if you cut here, you'll probably destroy your monitor ------------
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform