01.
<ul>
02.
<?
03.
if
(
$rec
[
'h_rdo1'
] ==
"YES"
)
04.
{
05.
$yes
=
"checked"
;
06.
$no
=
""
;
07.
$congenital
=
$rec
[
'yes_con'
];
08.
}
09.
else
if
(
$rec
[
'yes_con'
]!=
""
)
10.
{
11.
$yes
=
"checked"
;
12.
$no
=
""
;
13.
$congenital
=
$rec
[
'yes_con'
];
14.
}
15.
else
if
(
$rec
[
'h_rdo1'
]==
"NO"
)
16.
{
17.
$yes
=
""
;
18.
$no
=
"checked"
;
19.
$congenital
=
""
;
20.
}
21.
?>
22.
<li>1.
do
you have congenital disease ? <input name=
"txt_health1"
type=
"radio"
value=
"YES"
<?
echo
$yes
?> /> yes</li>
23.
<li><input name=
"txt_yes_con"
type=
"text"
value=
"<? echo $congenital?>"
/></li>
24.
<li><input name=
"txt_health1"
type=
"radio"
value=
"NO"
<?
echo
$no
?>/> No.</li>
25.
</ul>