HTML - counting the number of responses from a text file

Join the discussion
Registration is free. Start your own thread to ask a follow-up.
1 reply · 2K views
jjiimmyy101
Messages
74
Reaction score
0
HTML -- counting the number of responses from a text file

Hello,

I have an angelfire website and on one of my pages I ask a simple question. What is your shirt size? There are four options: Small, Medium, Large and Extra Large. The answer is then submitted to a text file.

My problem is that I would like to be able to keep track of how many times people respond with "Small" or "Medium" or "Large" or "Extra Large" in a different text file. I've attached a sample of what kind of output I'm looking for (or anything similar to this), if my description isn't clear. I don't want to manually count the responses like I have been doing.

Is there anyway to accomplish this, keeping in mind that angelfire will not allow me to add any of my own cgi, php, asp, etc. (I can however use Javascript on angelfire, but I am not that comfortable with it).

Any suggestions would be appreciated.

Jimmy
 

Attachments

Physics news on Phys.org


#1) Use a file to store the counter.
Modify file each time request is made

#2) Do the calculation on your computer. Make a program to parse the inputs .. So just make files go through that program instead of reading them directly