nooB for question

J

JWBlue

I want to use a simple form with a checkbox either on or off and store the
results to a text file, with minimal overhead. Very ignorant about this
stuff so be gentle! I have IIS running (but no front page extensions) on a
windows machine.

Scope: "MyPage.Html" displays form with one checkbox reading default value
from text file (MyFormData.Txt) in same folder. If user changes value of
check box and hits submit it logs those results to MyFormData.Txt
over-writing the previous contents.

What is the simplest way to accomplish? Sample code would be much
appreciated.

Thanks in advance.

- Ben
 
J

Jim Higson

JWBlue said:
I want to use a simple form with a checkbox either on or off and store the
results to a text file, with minimal overhead. Very ignorant about this
stuff so be gentle! I have IIS running (but no front page extensions) on
a windows machine.

Scope: "MyPage.Html" displays form with one checkbox reading default value
from text file (MyFormData.Txt) in same folder. If user changes value of
check box and hits submit it logs those results to MyFormData.Txt
over-writing the previous contents.

What is the simplest way to accomplish? Sample code would be much
appreciated.

You need to use a server-side scripting language (eg PHP, Perl, Ruby). Are
any installed on the server?
 
A

Adrienne Boswell

I want to use a simple form with a checkbox either on or off and store
the results to a text file, with minimal overhead. Very ignorant about
this stuff so be gentle! I have IIS running (but no front page
extensions) on a windows machine.

Scope: "MyPage.Html" displays form with one checkbox reading default
value from text file (MyFormData.Txt) in same folder. If user changes
value of check box and hits submit it logs those results to
MyFormData.Txt over-writing the previous contents.

What is the simplest way to accomplish? Sample code would be much
appreciated.

Thanks in advance.

- Ben

As others have said, you need server side script to do that. You have IIS
running, so look into ASP. You can start learning at
<URL:http://www.w3schools.com/asp/>
 
D

Dan

JWBlue said:
I want to use a simple form with a checkbox either on or off and store the
results to a text file, with minimal overhead. Very ignorant about this
stuff so be gentle! I have IIS running (but no front page extensions) on a
windows machine.

First off, i would suggest dumping IIS and downloading Apache (free).
Scope: "MyPage.Html" displays form with one checkbox reading default value
from text file (MyFormData.Txt) in same folder. If user changes value of
check box and hits submit it logs those results to MyFormData.Txt
over-writing the previous contents.

I take it that you mean a text box rather than a text box.
What is the simplest way to accomplish? Sample code would be much
appreciated.

This can't be achieved on the client-side, you'll need to use a
server-side language such as Perl or PHP. Perl would be my choice as
working with text files is very simple. If you choose to go down the
perl route, email me a moc.cam@amsev (the address is 'tnorf ot kcab')
and i'll knock you up a few lines of code to do what you want.

Ta,

Dan
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top