
-----------------------------------
waltg72
Mon Aug 30, 2010 5:50 am

Auto populate textbox after selecting an item from my listmenu or combobox
-----------------------------------
I am just starting to learn php and mysql as database. Is there a way to use my data stored from my mysql table as my option list to my list menu in php? Then once I select one of those data displayed from my listmenu, i want to display the item also in a textbox. Is this possible? How? can someone give me a php sample for this? I am spending weeks trying to figure out how to do this stuff. Thanks in advance.

-----------------------------------
DanShadow
Wed Sep 22, 2010 2:07 pm

Re: Auto populate textbox after selecting an item from my listmenu or combobox
-----------------------------------
It's pretty easy actually :).

I'm running a bit late today, so ill just give you pseudo-code.


$array = LOAD_DB_ROW_DATA;

echo "";

echo "";

for ($i = 0; $i < count($array); $i++) {
   echo "