
HI,
I have a title field and a payment type field
for title i have used drop down with values mr.,mrs.,miss for payment type there are to radio buttons as by cash & by cheque
When 'm adding a new customer it works fine as we have to select the value from dropdown and radio button.. But the problem goes with edit action..
While the edit form is being displayed it gets all the values from the database for text boxes..bt select default value for dropdown and radio button...How do i get the value from the database for title and radio button selected for default
Here's is my edt page code for dropdown and radio button.
<td>
<b class="label">Title<b>
</td>
<td>
<select name="title">
<option value="Mr.">Mr.</option>
<option value="Mrs.">Mrs.</option>
<option value="Miss">Miss.</option>
</select>
</td>
<td width="25%">
<b class="label">Payment Type<b>
</td>
<td width="40%">
<INPUT TYPE=radio NAME="payment_method" VALUE="cash" CHECKED><b class="label">By Cash</b></input>
<INPUT TYPE=radio NAME="payment_method" VALUE="cheque" onclick="return payment();"><b class="label">By Cheque</b></input>
</td>
'm using jsp and ms access database..