Try this
for($location=0;$location<16;$location++){
$value[$location] = $_POST['postedname'.$location];
}
Concatenate the $location variable rather than sticking it within the quotes. This will work, i had to do something similar in a crunch on a recent project.