Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

HTML - counting the number of responses from a text file

  1. Jul 31, 2008 #1
    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
     

    Attached Files:

  2. jcsd
  3. Jul 31, 2008 #2
    Re: HTML -- counting the number of responses from a text file

    #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
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: HTML - counting the number of responses from a text file
Loading...