On my update page I'm tring to display the value of a radio button that is stored in a table. The value stored is "yes" When I load the form the radio button field doesn't highlight either button. Can someone tell me what I'm doing wrong? Here's the code, I know it's probably sloppy, but I 'm new at this and any help will be appreciated.
<td><div align="left">
<input
<?php
if (!$_POST && !(strcmp($row_GetMember['county_relief'],"yes"))) {
echo "checked=\"checked\"";
}
elseif ($_POST && !(strcmp($_POST['county_group'],"yes"))){
echo "checked=\"checked\"";
}
?>
name="county_group" type="radio" class="text_background" value="yes" id="county_yes"/>
<label for="county_yes">Yes</label>
<input
<?php
if (!$_POST && !(strcmp($row_GetMember['county_relief'],"no"))) {
echo "checked=\"checked\"";
}
elseif ($_POST && !(strcmp($_POST['county_group'],"no"))){
echo "checked=\"checked\"";
}
?>
name="county_group" type="radio" class="text_background" id="county_no" value="no" />
<label for="county_no">No</label></div>
</td>
[EDIT: added
tags around code -- MOD][/color]