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 Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
PC Posted April 4, 2009 Author Share Posted April 4, 2009 Thanks. Sorted noiw. Paul Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.