Link to home
Start Free TrialLog in
Avatar of tyroneb
tyroneb

asked on

Open browser and post info to website ?

I'm writing a strategy game in VB 5.0. The game calculates a score and I'd like to have "high scores" posted on my website. I'd like for the game to offer the option to post a high score in a small database table (or such) on the website. The option should preferably open the default browser (if necessary), link to the proper site, then add a record into a table, which sorts by high score, then nickname. How do you open the default browser, link to a site, then add a record in VB 5.0? I would use an Access table or am open to an alternative method. This solution needs to work with Win95 in addition to Win98.
Avatar of edunc
edunc

use an ftp control to upload a preset webpage w/ the scores added to it w/ VB.  then use this code to open a browser to the page:
retVal = shell("start www.yourpage.com/scores.html")
Avatar of tyroneb

ASKER

Almost there. Thanks edunc, but I need more info. I have a "basic" installation of VB 5.0 Professional and in the "Components" box, I did not see an "FTP control" listed. Do I get it from somewhere or could I use the Inet control? I think I could build a "preset web page", but will the website "accumulate" different records from "all over" from possibly hundreds of clients? Also, the command: retVal = shell("start www.yourpage.com/scores.html") seems to be doing something processing-wise, but doesn't open my browser. I've seen this command tonight on this site and I'm wondering if it only works for Win98. I guess I need to have my hand held a little bit more :-).
You can easily post data to the web with the Internet Transfer Control (method Excecute).

I think you main pb will be to collect the data on the web site (in a database ?). Can you create cgi program or asp on the web server (are your granted to ?).

If not you could only receive data through mail, putting starting the url with mailto:

Avatar of tyroneb

ASKER

Since I'm a database programmer by nature, the first solution to come to mind for a file that accumulates records or lines is a database. I'm open to other options, but would need to know how to do it.
The main first question is: Where is your web site ? on internet or on intranet.
Avatar of tyroneb

ASKER

It is an internet-only application with a web-host that supports all the bells and whistles: asp, front-page extensions, cgi-bin, etc. (all the things that I haven't worked with much :-) )
Avatar of tyroneb

ASKER

Adjusted points to 120
ASKER CERTIFIED SOLUTION
Avatar of MasseyM
MasseyM

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial