HTML/CSS HTML - counting the number of responses from a text file

AI Thread Summary
To track responses for shirt sizes on an Angelfire website, a user seeks a method to count submissions from a text file without manual counting. The user can only use JavaScript due to platform restrictions. Suggestions include creating a separate file to store counts that updates each time a response is submitted or developing a local program to parse the input files and calculate totals. These approaches aim to automate the counting process while adhering to the limitations of the Angelfire platform.
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

Technology 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
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...

Similar threads

Replies
17
Views
5K
Replies
5
Views
2K
Replies
7
Views
3K
Replies
13
Views
2K
Replies
3
Views
3K
Replies
2
Views
5K
Back
Top