這是擴展yibing的select默認選擇的實現方法
<select name="wuyeleixing" size="
<option <?php if($myrow[wuyeleixing]==
<option <?php if($myrow[wuyeleixing]==
<option <?php if($myrow[wuyeleixing]==
<option <?php if($myrow[wuyeleixing]==
<option <?php if($myrow[wuyeleixing]==
<option <?php if($myrow[wuyeleixing]==
<option <?php if($myrow[wuyeleixing]==
<option <?php if($myrow[wuyeleixing]==
<option <?php if($myrow[wuyeleixing]==
<option <?php if($myrow[wuyeleixing]==
<option <?php if($myrow[wuyeleixing]==
</select>
radio單選框的默認選擇實現
<input type="radio" name="dishu" value="
<input type="radio" name="dishu" value="
<input type="radio" name="dishu" value="
<input type="radio" name="dishu" value="
checkbox 復選框的默認選擇實現
<input name="fujia_jiaju" type="checkbox" value="jiaju" <?php if($myrow[fujia_jiaju]) echo("checked");?>></font></strong>家 具</td>
<td width="
name="fujia_chuju" type="checkbox" value="chuju" <?php if($myrow[fujia_chuju]) echo("checked");?>></font></strong>廚 具</td>
<td width="
name="fujia_woju" type="checkbox" value="woju" <?php if($myrow[fujia_woju]) echo("checked");?>></font></strong>臥 具</td>
<td width="
name="fujia_TV" type="checkbox" value="TV" <?php if($myrow[fujia_TV]) echo("checked");?>></font></strong>電視機
From:http://tw.wingwit.com/Article/program/PHP/201311/20927.html