错误行289列13:元素结束标记“选择”,这是不开放

问题描述:

错误行289列13:元素结束标记“选择”,这是不开错误行289列13:元素结束标记“选择”,这是不开放

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

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

<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"/> 

= \“选择\”,而不是选择一个未在文档类型XHTML不允许。

+0

请你发布G精炼的html代码? – BergListe