Forum Moderators: coopster
You need to access the data as an array:
<select name="items[]" multiple>
Depends then on what you want to do. If you want to echo the contents to a single database table, you can implode the data. Or use a loop if you want seperate inserts.
Implode:
if (!empty($_POST['items']))
{
$data = implode(",", $_POST['items']);
}
or with a loop:
if (!empty($_POST['items']))
{
foreach ($_POST['items'] as $value)
{
echo $value;
}
}
dc