Dec 23, 2006

Retrieve Values From a Multi-Select ListBox

This sample shows how to retrieve values from a Listbox which allows for the selection of multiple values.

PHP:

if ($_POST['listboxname'])
{
foreach ($_POST['listboxname'] as $var)
{
echo $var;
// add your code here
}
}

No comments: