Quantcast HTML -- counting the number of responses from a text file Text - Physics Forums Library

PDA

View Full Version : HTML -- counting the number of responses from a text file


jjiimmyy101
Jul31-08, 08:14 PM
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

rootX
Jul31-08, 08:48 PM
#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