
10-02-2010, 02:55 PM
|
|
|
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by ascroft
Form is all going really well but I would love to let the form completer select from the available thread prefixes for the forum that I have the form attached to rather than having to specify this up front - is this possible please??
|
Create Custom Question
- Reference Name:
- PHP Code:
PHP Code:
require_once(DIR . '/includes/functions_prefix.php');
$thisanswer = $q[$formbit[id]];
$prefix_options = fetch_prefix_html($form['forumid'], $thisanswer, true);
$answer = '<select name="' . $formbit[id] . '" id="q_' . $formbit[id] . '" class="bginput">';
$answer .= '<option value="">'.$vbphrase[no_prefix_meta].'</option>';
$answer .= $prefix_options;
$answer .= '</select>';
Add the following to Form Hook: Before Submit:
PHP Code:
$form['prefix'] = $form['prefixid'] = $qo['prefix'];
|