what do i have to have the "Form Actions" set to to do this that you did below...i tried it posting in new thread and thats what it does...tried it in post in thread but then what would i put in the thread id area?? it says it posts but it really didnt.
Quote:
Originally Posted by bananalive
Form Hook: Form Start:
PHP Code:
$form['threadid'] = $q['threadid'];
Form Hook: Before Submit:
PHP Code:
$form['threadid'] = $q['threadid'];
Custom Question - Reference Name:
- PHP Code:
PHP Code:
$answer = '<select name="'.$formbit[id].'">';
$answer .= '<option></option>';
$thisanswer = $q[$formbit[id]];
$threads = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "thread
WHERE forumid = '2'
ORDER BY title ASC");
while($row = $db->fetch_array($threads)) {
$answer .= '<option value="'.$row[threadid].'"';
if ($row[threadid] == $thisanswer) {
$answer .= 'selected="selected"';
}
$answer .= '>'.$row[title].'</option>';
}
$answer .= '</select>';
|