Jasbir21
asked on
Adding value to combobox
Hi,
I have a combo box:
Color
<select name="col">
<option value='red'>Red</option>
<option value='blue'>Blue</option>
<option value='white'>White</optio n>
<option value='green'>Green</optio n>
<option value='black'>Black</optio n>
</select>
Values are set at the combo box using the option
How do i get it to get value from database,
for example i have a table
called Color with colorid and description.
How do i do it so that i could add new colors and it gets added to combo.And if i delete the value from database, it gets deleted from combo as well
Thanks
I have a combo box:
Color
<select name="col">
<option value='red'>Red</option>
<option value='blue'>Blue</option>
<option value='white'>White</optio
<option value='green'>Green</optio
<option value='black'>Black</optio
</select>
Values are set at the combo box using the option
How do i get it to get value from database,
for example i have a table
called Color with colorid and description.
How do i do it so that i could add new colors and it gets added to combo.And if i delete the value from database, it gets deleted from combo as well
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you very much.
http://java.sun.com/docs/books/tutorial/jdbc/basics/
http://www.javaolympus.com/freebooks/FreeJDBCBooks.jsp
let us know if you have further enquires.