nite1x
12-06-2004, 12:37 PM
I've made an "interactive" scorecard for a simulated golf game where the players can enter their scores in a form, click a button and get the totals.
The basic scorecard can be viewed here (users.igl.net/nite1x/golfscore.htm).
A more advanced one that asks for players names, and sends an alert with the winner's name can be viewed here (users.igl.net/nite1x/golfscore1.htm).
I would like to make a scorecard for team play with two teams of two players per team. I want to be able to take the best (lowest) score per team for each hole and add them to find the total score. To do this with the same method means at least 72 lines of coding with all the possible errors entailed. Does anyone know of a way I can use a for loop to get the values from the form, and add only the lowest score for each team to get a total score?
The basic scorecard can be viewed here (users.igl.net/nite1x/golfscore.htm).
A more advanced one that asks for players names, and sends an alert with the winner's name can be viewed here (users.igl.net/nite1x/golfscore1.htm).
I would like to make a scorecard for team play with two teams of two players per team. I want to be able to take the best (lowest) score per team for each hole and add them to find the total score. To do this with the same method means at least 72 lines of coding with all the possible errors entailed. Does anyone know of a way I can use a for loop to get the values from the form, and add only the lowest score for each team to get a total score?