PHP Build a Basic PHP Website (2018) Enhancing a Form Re-Displaying the Submission

Albert Nassif
Albert Nassif
9,534 Points

Problem with duplicate genre names for different categories/formats

There is a bug in this code, in the genre section there are multiple instances of say "Action" or "Romance" etc... and therefore the browser gets lost and doesn't know whether it was the Book genre or the Movie genre that was selected and tends to get it wrong when it repopulates the fields.