i got this code @ file.php
and this code @ file.tplPHP Code:// Dropdown: Chemicals
$chemicalsDropdown = getDropdown("CHEMICALS");
while (list($key, $value) = each($chemicalsDropdown)) {
if ($key == $_SESSION['enquiryPage']['wheel']['environment_chemicals']){
$is_selected = "selected";
}
else { $is_selected = "";
}
$template->process('CHEMICALS_LIST', array(
'list_id' => $key,
'list_value' => $value,
'list_selected' => $is_selected
));
i can select more than 1 chemical,PHP Code:<select name="environment_chemicals" multiple size="5" style="width: 300px;">
<option value="0">[NO_CHEMICALS]</option>
{section CHEMICALS_LIST}
<option value="{list_id}" {list_selected}>{list_value}</option>
{/section CHEMICALS_LIST}
</select>
but after i press save button, the result will show only the last id that selected
how to get the other selected chemicals?
thx


Reply With Quote

Bookmarks