在用php编写的页面上我想做以下几点:
下拉菜单,编号从1到12>用户选择数字x后,将出现x个更多下拉菜单(带有不同选项)。 这是我到目前为止使用的,但我不知道如何使它工作。
$steps = array (
1 => '1',
2 => '2',
3 => '3',
4 => '4',
5 => '5',
6 => '6',
7 => '7',
8 => '8',
9 => '9',
10 => '10',
11 => '11',
12 => '12',
);
$events = array (
'Click' => 'Click',
'Create' => 'Create',
'Download' => 'Download',
'Load' => 'Load',
'Login' => 'Login',
'Payment' => 'Payment',
'Promocode' => 'Promocode',
'Registration' => 'Registration',
'Remove' => 'Remove',
'Restart' => 'Restart',
'Start' => 'Start',
'View' => 'View',
);
$form['steps'] = array (
'#prefix' => '<div class="regionsel form-item">',
'#type' => 'select',
'#title' => t('Select number of steps'),
'#default_value' => isset($_GET['step']) ? >input_filter($_GET['step']) : '1',
'#options' => $steps,
'#suffix' => '</div>'
);