I am sending a bunch of post variables that have a number after them.. as far as the server goes I don't know how many im sending so it could be rmitem0 by itself or rmitem0, rmitem1, rmitem2, etc I want to dump them all into an array, but it's not working case "remove"; if(isset($_POST['rmitem0'])) { while(isset($_POST['rmitem$i'])) { $rmitem[$i] = $_POST['rmitem$i']; $i++; } echo "Select Quantity to Remove
"; echo "$rmitem"; print_r($rmitem); } break;