PC Posted April 4, 2009 Share Posted April 4, 2009 Hi All I am trying to populate a combo box from an oracle table. I have generated a result set that contains an Id field and a City field. How do I get the contents of the result set into the combo box in such a way that the selected city id is then posted? Thanks Paul Link to comment https://forums.phpfreaks.com/topic/152569-solved-populating-combo-box-from-a-table/ Share on other sites More sharing options...
PC Posted April 4, 2009 Author Share Posted April 4, 2009 Hi All this is not actually a table. the result set is an array and when I load the page I get array repeated many times down the page. Any ideas? Thanks Paul Link to comment https://forums.phpfreaks.com/topic/152569-solved-populating-combo-box-from-a-table/#findComment-801324 Share on other sites More sharing options...
xtopolis Posted April 4, 2009 Share Posted April 4, 2009 <form name=myform> <select name=mytextarea> <option name=one value=one> one </option> <option name=two value=two> two </option> <option name=three value=three> three </option> </select> </form> Loop through your results in place of the <option> tags Link to comment https://forums.phpfreaks.com/topic/152569-solved-populating-combo-box-from-a-table/#findComment-801344 Share on other sites More sharing options...
PC Posted April 4, 2009 Author Share Posted April 4, 2009 Thanks. Sorted noiw. Paul Link to comment https://forums.phpfreaks.com/topic/152569-solved-populating-combo-box-from-a-table/#findComment-801377 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.