Recommended Answers
Jump to PostFirst, each set of Player form fields will must have unique names. You can't have "playerid" for five different form fields on the same form. So you will need something like "playerid_1", "playerid_2", etc. Each of the fields for each player must be named in the same fashion, having a …
Jump to PostYour inserts would each look virtually identical to your existing insert, except that the values for each would reflect the appropriate form field names, ie "VALUES ('$_POST[playerid_1]','$_POST[game_id_1]',..." for the first player, and "VALUES ('$_POST[playerid_2]','$_POST[game_id_2]',..." for the second player, etc.
All 7 Replies
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.