Array help

Hello,

I use php to build multi-select items box from arraylist. Now, how do I on the next page get selected items?

Here is the code inside of post form:

<select multiple size=6 name=\\"country\\">
		$countryList
		</select>

And yet:

for($c = 0; $c < count($supportedCountries); $c++)
{
	$countryList = $countryList."<option value=\\"$supportedCountries[$c]\\">$supportedCountries[$c]</option>";
}

I tried to echo $_POST[‘country’], but it only returns last selected item. Do I have to do some explode or foreach?

http://www.php.net/manual/en/faq.html.php#faq.html.arrays


<select name="country[]" multiple="multiple">


print_r($_POST['country']);

Aha, this is what I was missing. Thanks (Im pretty new to web stuff)