You are presently assigning using a single =
sign, instead of comparing using 2x ==
signs.
if ($team==1) {
echo "Filtering for All Players";
} elseif ($team==2) {
echo "Filtering for 2";
} else {
echo "Filtering for 3";
}
For more information on assignment operators, visit PHP.net
and on comparison operators