You can do this in two ways.
1) Using XML. Please have a look at the sample XML code given at
http://p2p.wrox.com/topic.asp?TOPIC_ID=25686
This is in ASP. But PHP provides the same technology.
2) using Javascript.
Fetch the texts associated with ids and store them in hidden fields. Let the names of hidden fields be created as hid_<id>. Let the name of form be frm_dynamic
Create a place holder for text. This can be a table cell or a div. You need to give an id for this. Let this id be id_place_holder.
Then, in the onchange event of the combo, you can write a javascript. Get the value of the chosen id. Get the corresponding text from hidden field. Display it in the place holder. Following code will do this.
var i_current_id=document.frm_dynamic.cbo_id.options[document.frm_dynamic. cbo_id.selectedIndex].value;
var str_text=eval('document.frm_dynamic.hid_'+i_curren t_id+'.value');
var obj_place_holder=document.getElementById("id_place _holder");
obj_place_holder.innerHTML=str_text;