NewUser
Posts: 6
|
Posted: 08/07/2013, 3:53 AM |
|
Hi ,
I recently started using codecharge. I have issues with multi select listbox.
I am able to read the values and add to database when user selects multiple values in list box.
But i am not able to preselect the values and display when the user visits the page again.
I use PHP.
when user visits again -- i use edit mode and do the following with the same control :
the list box contains - books,bags
$recordname->controlname->Values = $firstarray;
$recordname->controlname->Value = $secondarray;
format of first array :
Array
(
[0] => Array
(
[0] => 19
[1] => books
)
[1] => Array
(
[0] => 20
[1] => bags
)
)
format of second array :
Array
(
[0] => Array
(
[0] => 19
[1] => books
)
)
I want books to be preselected. but both books and bags are preselected
anything wrong with format of the array.. why are both values preselected in list box.. can anyone help me out please?
|
|
|
|