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

J

john

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!
 
B

Benjamin

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top