<input name="sex" type="radio" value="男" <if condition="$rel['sex'] eq '男'">checked="checked"</if> />男
<input name="sex" type="radio" value="女" <if condition="$rel['sex'] eq '女'">checked="checked"</if> />女
只要根据数据库表中sex字段值进行判断,若为“男”,则选中男,否则选中女。
<input name="sex" type="radio" value="男" <if condition="$rel['sex'] eq '男'">checked="checked"</if> />男
<input name="sex" type="radio" value="女" <if condition="$rel['sex'] eq '女'">checked="checked"</if> />女
只要根据数据库表中sex字段值进行判断,若为“男”,则选中男,否则选中女。