CodeChargeMVP
Posts: 473
|
| Posted: 11/08/2010, 4:16 AM |
|
Hello,
This is an small part of a task where I´m struggling on:
Anywhere in my code is required than I echo an listbox this way:
$Thisisonlyatest = array("Juan", "Pedro");
echo"<select id='transferenciaselDivCod' name='elDivCod'><option selected value=''>Select value</option>"."{".$Thisisonlyatest."}"."</select>";
I´ve to create an array in the same way than Codecharge does with text and value,
the question is ¿how should like the array by the values are showed when the listbox is shown?
At this time when the listbox is showed no shows any values,just Select value.
_________________
Best Regards
Entrepeneur | NT Consultant
|
 |
 |
datadoit
|
| Posted: 11/08/2010, 5:25 AM |
|
Please read: http://docs.codecharge.com/studio40/html/ProgrammingTec...Values.html?toc
|
|
|
 |
CodeChargeMVP
Posts: 473
|
| Posted: 11/08/2010, 9:11 AM |
|
thank you for your answer datadoit,
but that was not the solution,
I already know that help page,
I´ve learn how to set an dependent listbox without using
the steps from CSS Examples, just with
html,dhtml,javascript,ajax and php.
The solution to this issue was just simple and easy, and it wasn´t related
with php, i´m sorry for that, it was only necesary to add a new option value to the listbox.
Quote datadoit:
_________________
Best Regards
Entrepeneur | NT Consultant
|
 |
 |
|