C
Clive_
Hi,
I need to update a combobox or list from a databse.
There needs to be a dynamic relationship between the database
cell and the selection.
The combobox code is easy:
<td> <select name="cboWFMasPointTenth"
onChange="TestWFMasPointTenthfunction(this.value)">
<option value="1">Yes</option>
<option value="0">No</option>
<option value="-1">-</option>
</td>
reading the database is:
<td> <select name="cboWFMasPointTenth"
onChange="TestWFMasPointTenthfunction(this.value)">
<option value=<%= rs.getInt(1)%> > </option>
</td>
The list maybe 1, 0, -1
The selected item needs to be set to the value in the database.
I cannot work out how to do this.
Could anyone help????
Thanks
Clive
I need to update a combobox or list from a databse.
There needs to be a dynamic relationship between the database
cell and the selection.
The combobox code is easy:
<td> <select name="cboWFMasPointTenth"
onChange="TestWFMasPointTenthfunction(this.value)">
<option value="1">Yes</option>
<option value="0">No</option>
<option value="-1">-</option>
</td>
reading the database is:
<td> <select name="cboWFMasPointTenth"
onChange="TestWFMasPointTenthfunction(this.value)">
<option value=<%= rs.getInt(1)%> > </option>
</td>
The list maybe 1, 0, -1
The selected item needs to be set to the value in the database.
I cannot work out how to do this.
Could anyone help????
Thanks
Clive