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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Submit to File

Status
Not open for further replies.

Pentcom

Programmer
Jan 7, 2004
4
CA
I was wondering if it was possible to save the data in a form to a text file instead of a server when the user clicks submit.

Thanks,
-Pentcom
 
This would be possible in IE only, using the FileSystemObject.

If you need multi-browser support, this wouldn't be nay good, however.

Let me know if you want sample code that works in IE only.

Dan
 
That would work (this is going to be IE driven), but I should be more specific. I actually want it to submit the data to a client-side executable (.exe only).

I Hope it's possible!

Thanks,
-Pentcom
 

Submitting data to an EXE file is so not the same as writing to a text file. I can't imagine how you managed to confuse the two things ;o)

Anyway - not sure about passing data to an EXE file on the client side. I know that you can pass data to a server-side EXE (by putting the EXE as the form action). While this may work client-side, I'm not sure about how the EXE goes about picking up the submitted data.

Hope this helps!

Dan
 
I tried making a client-side exe pick up the data but it keeps comming up as a blank.

What I wanted to do was make a database program that had the software running in the background and a webpage (to collect and display data) running in the foreground. A neat idea but unfortunately not possible.

Thanks anyway,
-Pentcom
 
You might be able to place an acticeX dll (com object) into the webpage to manipulate the clientside database. You would still need a webserver to feed the page to the client and register the dll on the server...

For effort required, I would either go for a full web enabled solution or just build the thing in VB (or whatever).

Bastien

Any one have a techie job in Toronto, I need to work...being laid off sucks!
 
Making a VB OCX is my secondary plan. I wanted to make this HTML driven, but that plan died. OCX it is.

P.S. I live in Toronto too. Etobicoke North actually.

-Pentcom
 
You could make an EXE file with some web components - maybe a mini web server that can pick up on form submits or something.

I'm sure there are plenty of samples of how to do this in both Delphi and VB around.

Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top