As of a week ago this worked and I'm not sure what changed. We have a database of movies with a set of radio buttons to rate the movies. Each set of radio buttons shares the name of the movie being rated so each set is a distinct set. When hitting submit, an entry to the Ratings table is added for each movie, but no ratings are passed through.
The radio button code:
<div id='stars'>
<input class='star star-6' id='{$NewID}-6' type='radio' name='{$row['MovieID']}' value='5'/>
<label class='star star-6' for='{$NewID}-6'></label>
<input class='star star-5' id='{$NewID}-5' type='radio' name='{$row['MovieID']}' value='4'/>
<label class='star star-5' for='{$NewID}-5'></label>
<input class='star star-4' id='{$NewID}-4' type='radio' name='{$row['MovieID']}' value='3'/>
<label class='star star-4' for='{$NewID}-4'></label>
<input class='star star-3' id='{$NewID}-3' type='radio' name='{$row['MovieID']}' value='2'/>
<label class='star star-3' for='{$NewID}-3'></label>
<input class='star star-2' id='{$NewID}-2' type='radio' name='{$row['MovieID']}' value='1'/>
<label class='star star-2' for='{$NewID}-2'></label>
<input class='star star-1 not' id='{$NewID}-1' type='radio' name='{$row['MovieID']}' value='notseen'/>
<label class='star star-1 not' for='{$NewID}-1'></label>
</div>
The SQL update code:
$pushrating = "INSERT INTO Ratings (Username, MovieID, Rating) VALUES ('{$user}', '{$row['MovieID']}', '{$_POST[$row['MovieID']]}')";
mysqli_query($db, $pushrating);