Below is an example of the HTML i currently have. I need to check if "Homea" and "Awaya" in the form match "Homea1" and "Awaya1" in the table respectively. If they do, then the output would be 3 and that would get placed in "Scorea1", this would repeat down for the rest of the code. There is a further condition if they don't match then you need to figure out that if "Homea" is larger than "Awaya" and "Homea1" is larger than "Awaya1" then 1 would be the output to "Scorea1". 1 would be the output also, if you replace the larger than to equal to and smaller than.
I know this sounds complicated so I'll explain the reasons behind this and how it sounds in practice.
A user will have their predictions of a football match (Soccer for Americans) in the table. Once the results are known they can enter them in the form and hit a button to calculate results. If their prediction matches the result they get 3 points, If their prediction guesses the correct outcome, (i.e. Home win, draw, Away win) then they get 1 point.