473,497 Members | 2,041 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Write forms values to external file, then execute a program?

I'm trying to develop fast, simple, html-based front ends
for some Windows application programs. My idea:

1. Use html forms to let users supply run parameters (title,
run options, etc.)

2. When the user presses a submit button:

a. The selected options for all the form fields are
written to an external file (e.g., c:\project\input.txt)

b. The application program, say, prog.exe, is executed.
This program then reads the run parameters from the file
input.txt and proceeds.

Here are examples of the kinds of forms I might use:

<html>

<form>
Run title:
<input type="text" name="run_title">
</form>

<form>
Method:
<select name="run_method">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
</form>

</html>

Is it possible to do steps 2a and 2b above? If so, does it
require only html code, or do I need javascript or something
similar?

As is probably obvious, I'm just an application programmer,
and a newbie when it comes to html etc.

Thanks in advance!

--
John Uebersax

Sep 23 '06 #1
1 1886
JavaScript can't processl JavaScript form. What you would need to do is
use a server-side language like PHP or ASP to process the form and call
the exe.
john wrote:
I'm trying to develop fast, simple, html-based front ends
for some Windows application programs. My idea:

1. Use html forms to let users supply run parameters (title,
run options, etc.)

2. When the user presses a submit button:

a. The selected options for all the form fields are
written to an external file (e.g., c:\project\input.txt)

b. The application program, say, prog.exe, is executed.
This program then reads the run parameters from the file
input.txt and proceeds.

Here are examples of the kinds of forms I might use:

<html>

<form>
Run title:
<input type="text" name="run_title">
</form>

<form>
Method:
<select name="run_method">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
</form>

</html>

Is it possible to do steps 2a and 2b above? If so, does it
require only html code, or do I need javascript or something
similar?

As is probably obvious, I'm just an application programmer,
and a newbie when it comes to html etc.

Thanks in advance!

--
John Uebersax
Sep 23 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
8748
by: haynesc | last post by:
Hi, I'm having a problem where when trying to open a file in write mode, I get an IOError stating no such file or directory. I'm calling an external program which takes an input file and...
15
3268
by: Viviana Vc | last post by:
How can I programatically do the equivalent of the following: cacls "C:\Program Files\test" /T /G Everyone:f ? Thanks, Viv
3
2079
by: jason | last post by:
I have a function that <body onload=..> sets some form values. However when i execute that functionf from external js file, i get erorrs and it dont work. The function sets the fields via ...
8
32645
by: Greg Fierro | last post by:
I would appreciate any help from anyone with the following: I have an external program (window32 based) that I am executing with the VBA SHELL command. This program produces a text file which I...
2
2400
by: Cédric Rossé | last post by:
Hello, I have a web application (asp.net, c#) and I'd like to execute an external program (.exe or .cmd) in the server side (which runs the iis server) when the client press a simple button on ...
12
1949
by: Peter Van Wilrijk | last post by:
Hi, In VB6 I have the following code ... Dim frmLink As Form Set frmLink = Forms.Add(stringformname) frmLink.Show 'wait until all data has been loaded Do Until frmLink.Loaded = 21 DoEvent
5
3609
by: snicks | last post by:
I'm trying to exec a program external to my ASP.NET app using the following code. The external app is a VB.NET application. Dim sPPTOut As String sPPTOut = MDEPDirStr + sID + ".ppt" Dim p As...
3
1910
by: Matthew Warren | last post by:
I have the following piece of code, taken from a bigger module, that even as I was writing I _knew_ there were better ways of doing it, using a parser or somesuch at least, but learning how wasn't...
2
5298
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: ...
0
7121
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7197
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5456
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4899
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3088
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1411
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
650
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
287
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.