Quote:
Originally Posted by bananalive
Yes, it is possible with Easy Forms
For dropdown list of members, create a custom question with following php code:
PHP Code:
$answer .= '<select name="'.$formbit[id].'">';
$members = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "user
WHERE usergroupid = 2
ORDER BY username ASC");
while($row = $db->fetch_array($members)) {
$answer .= '<option value="'.$row[username].'"';
if ($row[username] == $thisanswer) {
$answer .= 'selected="selected"';
}
$answer .= '>'.$row[username].'</option>';
}
$answer .= '</select>';
Change 2 to the desired usergroupid
|
Works like a charm - one addition if you could help me out please - how can I add secondary groups also?