The error is not so much an error as a completely blank page!
I have a couple of forms, in form 1 one of the fields is 'Numbers of Players', say the user adds '3' to this fills the rest in and clicks the ok button.
Form2 then generates a form with '3' lines (one for each player).
Using the $counter I have made sure that every cell has a unique name
Like this:
Position | Points | Membership Number | Name
--------------------------------------------------------------------
Pos1 | Point1 | MembershipNo1 | Name1
Pos2 | Point2 | MembershipNo2 | Name2
Pos3 | Point3 | MembershipNo3 | Name3
But when I come to save this information into my database I dont want to have to manually create a if ($_POST['MembershipNo1] for every entry.
I'd like to be able to create a for loop
($i = 1; $i <= $PlayerNo; $i++)
and use this to number the $POST data like this:
$_POST["MembershipNo$i"]
But I can't get it to work!!
I'm not sure if I'm doing this in completely the wrong way or not, so feel free to guide me in a better way if there is one 😕
Thanks a lot.