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?