美文网首页
默认选中 radio select

默认选中 radio select

作者: lessonSam | 来源:发表于2020-11-18 10:04 被阅读0次
    <select name="wuyeleixing" size="1">
    <option <?php if($myrow[wuyeleixing]==1) echo("selected");?> value="1">住宅</option>
    <option <?php if($myrow[wuyeleixing]==2) echo("selected");?> value="2">办公室</option>
    <option <?php if($myrow[wuyeleixing]==3) echo("selected");?> value="3">营业房</option>
    <option <?php if($myrow[wuyeleixing]==4) echo("selected");?> value="4">厂房</option>
    <option <?php if($myrow[wuyeleixing]==5) echo("selected");?> value="5">仓库</option>
    <option <?php if($myrow[wuyeleixing]==6) echo("selected");?> value="6">地块</option>
    <option <?php if($myrow[wuyeleixing]==7) echo("selected");?> value="7">综合楼</option>
    <option <?php if($myrow[wuyeleixing]==8) echo("selected");?> value="8">农牧场</option>
    
    <option <?php if($myrow[wuyeleixing]==9) echo("selected");?> value="9">商住楼</option>
    <option <?php if($myrow[wuyeleixing]==10) echo("selected");?> value="10">宾馆酒楼</option>
    <option <?php if($myrow[wuyeleixing]==11) echo("selected");?> value="11">校舍</option>
    
    </select>
    
    <input type="radio" name="dishu" value="3" <?php if($myrow[dishu]==3) echo("checked");?>>空白
    <input type="radio" name="dishu" value="1" <?php if($myrow[dishu]==1) echo("checked");?>>出让
    <input type="radio" name="dishu" value="2" <?php if($myrow[dishu]==2) echo("checked");?>>划拨
    <input type="radio" name="dishu" value="4" <?php if($myrow[dishu]==4) echo("checked");?>>集体
    

    相关文章

      网友评论

          本文标题:默认选中 radio select

          本文链接:https://www.haomeiwen.com/subject/pkbgvktx.html