Need Help with Complex Combo Box Situation

Hi,

I have a form on a website to edit profile. The form consists of some combo boxes (drop down). I can edit my profile by choosing what I want in the combo box then send it to the database. After sending it, it goes back to my home page and displays my new profile. Now the tricky part starts… when I click on edit profile again, I want the combo boxes to display what I had selected. What happens right now is that everything gets reset, so if you want to change something in just one combo box, you still have to change all of them. So how can this be done???

I can retrieve the data from the database, lets say… Age is 10-15… and lets say thats the 3rd label in my combo box “Age”… so on retrieving this data, i can use the code…

Age.setSelectedIndex(2);

What this code does is find the label at index 2 and displays it(Combo box index starts at 0 like arrays). So my thing is, i can retrieve the data from the data base, and now… how do i find out which index that data is stored in???

This is confusing but I hope someone can help me or ask me more about this so that I can explain clearer… Thanks to all in advance!!!

Noah

P.S.: SENOCULAR!!! HELP!!! :grin: