Making a web form to manage chess ratings
Posted: Sat Feb 08, 2003 4:46 pm
I'm looking to create a web form to calculate the chess rating for the players in my chess group.
The page has two drop down boxes and a "Submit" button. Each box has the players' names listed. The first box is for choosing the winner of the game being submitted, the second is for choosing the loser.
In the same folder as my form are files for the players' current rating. For example, my player name is "savior" and my current rating is 1200, so my file is called savior.txt and it contains the text "1200".
What I would like the script to do is, when the "Submit" button is clicked, access the text files that correspond with the winner and loser, get the numerical value contained in each, and then apply the rating formula to the values. Then I would like the movie to put the new value for each of the players' ratings into the text files in place of the old value.
Could someone tell me if this is even possible, first of all. And if so, I would love to get a little help creating it. I'm sorry to say that I've never actually built anything with PHP, but I catch on rather quickly, so you don't have to totally baby me. Any help would be GREATLY appreciated. Thanks.
The page has two drop down boxes and a "Submit" button. Each box has the players' names listed. The first box is for choosing the winner of the game being submitted, the second is for choosing the loser.
In the same folder as my form are files for the players' current rating. For example, my player name is "savior" and my current rating is 1200, so my file is called savior.txt and it contains the text "1200".
What I would like the script to do is, when the "Submit" button is clicked, access the text files that correspond with the winner and loser, get the numerical value contained in each, and then apply the rating formula to the values. Then I would like the movie to put the new value for each of the players' ratings into the text files in place of the old value.
Could someone tell me if this is even possible, first of all. And if so, I would love to get a little help creating it. I'm sorry to say that I've never actually built anything with PHP, but I catch on rather quickly, so you don't have to totally baby me. Any help would be GREATLY appreciated. Thanks.