ok i have this

<select name="testCol[]" id="endresult" size=20>
<option value=1>1</option>
<option value=2>2</option>
<option value=3>3</option>
<option value=4>4</option>
</select>


now i need to pull all these values after someone hits the submit box, i tried this but it doesnt work

foreach($_POST['testCol'] as $key => $value){
echo $key." ---- ". $value ."<br>";
}


what should i do?