Hi there Dom.
I have the following code in a form question (thanks to you! :-)) but I would like to control the order of the items in the drop down list - only 2 there for now but will have have maybe 30 or so soon. Ideally I would like total control as I want to order geographically which only I know. Is this possible please? I was thinking I could keep the order in some kind of variable?
Many thanks
Mark
$answer = "<select name=\"$formbit[id]\" id=\"q_" . $formbit[id] . "\">";
foreach ($vbulletin->forumcache AS $forumid => $forum)
{
if (!in_array($forumid, array(61,56)))
{
continue;
}
if ($qo['forumid']==$forumid)
{
$forum['selected'] = ' selected="selected"';
}
$answer .= "<option value=\"$forumid\"$forum[selected]>$forum[title]</option>";
}
$answer .= "</select>";
|