I currently edit an open source program and have a question: the php code is actually like this:
print "<select multiple name=\"appliesto[]\" size=\"5\">";
foreach ($products as $k => $v) {
$pid = $k;
$group = $v['group'];
$prodname = $v['name'];
print "<option value=\"$pid\">$group - $prodname</option>";
}
print "</select>
Is it possible to get 2 values with each selected option? Because I need to save $pid and $prodname in 2 different columns on a mysql table.
Thanks!