foreach ($graphEdge as $graphNode) {
echo
"<div class='form-check mb-3'>" .
"<input type='radio' name='fb_profile' class='form-check-input' value='".$graphNode['name']."'>" .
"<img class='mr-2' src='" . $graphNode['picture']['url'] . "'>" .
"<label class='form-check-label' for='fb_profile'>" .
$graphNode['name'] . '</label>' .
"</div>";
echo "<input type='hidden' name='fb_access_token' value='" . $graphNode['access_token'] . "'>";
echo "<input type='hidden' name='fb_id' value='" . $graphNode['id'] . "'>";
}
As the title suggests, I have 3 hidden inputs named 'fb_id' that when I POST in a form will always retrieve the last hidden input yet fb_access_token will always POST correctly.