Hello there....
I hope there's someone who can help with one algorithm...I'v e been trying
the whole day....
I'm building my own FORM class and have a
function select(&$option s, $name = "", $onchange = "")
there's also a var $selected to be called before ->select() because
someitmes I need some stuff to be selected by default....
I'm having a problem with algorithm after checking if ->selected is array or
not...
"not" part is done but "it is" part is giving me headaches....
i also have a var $selcted_what before ->selected to define what will be
selected ($keys or $values)...
So the pseudo code should be..
$options=Aray(" test1","test2", "test3","test4" ,"test5");
$object->selected_what= "values";
$object->selected=Array ("test1","test2 ");
$object->select($option s);
So the output should be select_box with test1 and test2 selected.....
or when
$object->selected_what= "keys";
$object->selected=Array (1,2);
$object->select($option s,"testing");
now it should have the "test2" and "test3" selected....
thanx for taking time to help....
respect....
I hope there's someone who can help with one algorithm...I'v e been trying
the whole day....
I'm building my own FORM class and have a
function select(&$option s, $name = "", $onchange = "")
there's also a var $selected to be called before ->select() because
someitmes I need some stuff to be selected by default....
I'm having a problem with algorithm after checking if ->selected is array or
not...
"not" part is done but "it is" part is giving me headaches....
i also have a var $selcted_what before ->selected to define what will be
selected ($keys or $values)...
So the pseudo code should be..
$options=Aray(" test1","test2", "test3","test4" ,"test5");
$object->selected_what= "values";
$object->selected=Array ("test1","test2 ");
$object->select($option s);
So the output should be select_box with test1 and test2 selected.....
or when
$object->selected_what= "keys";
$object->selected=Array (1,2);
$object->select($option s,"testing");
now it should have the "test2" and "test3" selected....
thanx for taking time to help....
respect....
Comment