radio button
Posted: Mon Jan 16, 2006 12:17 am
hello guys, hope you can help me. a form displays the data that is to be updated but i do not know what code needs to be written so that the value in the database will reflect in the radio button.
*this is a code snippet i wrote and it is just a simple text box that would reflect the value of htmlspecialchars($row['date_received']) ?>
what do i need to write so that i can do an equivalent on a radio box where the stored value is selected?
many thanks for the help!
*this is a code snippet i wrote and it is just a simple text box that would reflect the value of htmlspecialchars($row['date_received']) ?>
Code: Select all
<td>Date Received<br><input type="text" name="upddate_received" value="<?php echo htmlspecialchars($row['date_received'] ) ?>">Code: Select all
<td>Resolved?<br>Yes <input type="radio" name="stat" value="Resolved"> No<input type="radio" name="stat" value="Unresolved" CHECKED>