sodagod
05-22-2015, 04:20 PM
I am trying to get the selected option, but it always returns a number.
here is how i did it.
$array = array("option 1","option 2","option 3", "option 4","option 5");
print_select_row('title', 'get_select', $array);
$vbulletin->input->clean_array_gpc('p', array(
'get_select' => TYPE_ARRAY
));
$get_select = $vbulletin->GPC['get_select'];
echo $get_select;
this always results in the number of selected option, I also tried type_array as type_str and that didnt work.
here is how i did it.
$array = array("option 1","option 2","option 3", "option 4","option 5");
print_select_row('title', 'get_select', $array);
$vbulletin->input->clean_array_gpc('p', array(
'get_select' => TYPE_ARRAY
));
$get_select = $vbulletin->GPC['get_select'];
echo $get_select;
this always results in the number of selected option, I also tried type_array as type_str and that didnt work.