错误行289,第13列:元素“select”的结束标记未打开

时间:2012-11-19 06:36:57

标签: validation xhtml

错误行289,第13列:元素“select”的结束标记未打开

</select> &nbsp; &nbsp; &nbsp; <input type="image"  src="http://ncrads.com/…

这里是我的代码..i已经关闭选择正确:( :(

<select   name="category" id="category" style="font-family: verdana;font-size: 11px; border: 1px solid rgb(102, 102, 102);width:120px;">**
    <option value="ALL">---All Category ---</option>
        <?php
            $sql1= 'SELECT cd.categories_name, cd.categories_id, c.category_id, c.parent_id FROM categories c, categories_description cd WHERE cd.categories_id = c.category_id AND c.parent_id = 0';
            $res1= q($sql1);
            $space ='&nbsp;&nbsp;&nbsp;';
            if($res1){
                while($row1 = f($res1)){
                if($row1['categories_id'] == $_SESSION['categorys']){
                    echo "<option value=\"".$row1['categories_id']."\" selected>".$row1['categories_name']."</option>";
                    }
                    else{
                    echo "<option value=\"".$row1['categories_id']."\">".$row1['categories_name']."</option>";
                    }
                }
            }
        ?>
</select> &nbsp; &nbsp; &nbsp; <input type="image"  src="http://ncrads.com/images/search.jpg" name="submit" value="submit"  align="top"/>

1 个答案:

答案 0 :(得分:-1)

尝试选择= \“selected \”而不是doctype xhtml中不允许选择的单个。