I am making a script to generate javascript code for my site. I select the number of groups that competed, then on the next page, there are 3 fields for each group. Now, for group 1, the input fields look like this:
<input type="text" name="rank1" value="<?=$rank?>">
<input type="text" name="score1" value="<?=$score?>">
<input type="text" name="group1" value="<?=$group?>">
Group 2's input fields wou be called, rank2, score2, and group2, and so on. How do I easily get all of the data on the next page? Do I use arrays? If so, how exactly do I do that?
I have a hidden field which is used to pass the number of groups on to the next page, incase that is nescessary.