Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using a html form for UI

Status
Not open for further replies.

c567591

MIS
Aug 12, 2002
67
US
What would be the best way to have a remote user control/access a program using a HTML interface?

I have a program I would like to be able to work with remotely over the internet and access data and change settings on.

How would I implement this?

Thanks
 
The best(well most fun) way is to write a small server/client set. Or build the server into the program itself. Then just put the client program on a site for you to download from anywhere (don't forget to compile statically linked). The client and server are pretty easy to write. Just use a TCP/IP server/client socket and send data back and forth.

You could even have the program automatically become a server when it is run (it would be a client to itself), but allow it to connect to another server and become a client to it instead. In this way, you will have the same front end and will only have one set of code for one piece of software.

If you really want to do it in HTML, it's not hard accessing the data, but changing settings in the program (by using the program itself) is a difficult task.

To access data, you would just need a medium, such as MySQL, that the software you write would connect to. Using PHP or your choice of scripting language, you may then use HTML to access that same data. Maybe you could just store the program settings in the database...then change them over the web.

Chris
 
Ok, if I do the client server thing, how do I manage the data on the cleint side?

If I have a stl vector containing all my info on the server side, how do I manage it from the client?

Is there an example I can look at somewhere?
All the C/S examples I have seen have been trivial and not shown what I am confused about.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top