Lemme know if this works for you:
PHP Code:
// Filburt1's style drop down - modified for all pages by brad.loo
$result = mysql_query("SELECT styleid,title FROM style WHERE userselect=1 ORDER BY title");
if (!$result)
{
$styledropdown = 'Couldn\'t get a list of styles';
}
else
{
$s = mysql_fetch_row($result);
$selected = '';
while ($s != false)
{
$styleid = $s[0];
$styletitle = htmlspecialchars($s[1]);
if ($bbuserinfo['userid'] != 0)
{
$selected = ($styleid == $bbuserinfo['styleid']) ? " selected" : "";
}
$styledropdown .= "<option value=\"$styleid\"$selected>$styletitle</option>";
$s = mysql_fetch_row($result);
}
$shash = $session[sessionhash];
if ($bbuserinfo['userid'] == 0)
{
$styledropdown = "<option value=\"" . $bbuserinfo['styleid'] .
"\" selected>Select a style:</option>";
}
$styledropdown = "
<select name=\"newstyleid\" onChange=\"window.location='index.php?s=$shash&styleid=' + this.value\">
$styledropdown
</select>";
}
// End style drop down- modified