当我在下面运行下面的代码时,它在Dreamweaver中工作,但是当我去网页浏览器中看到它显示。Dreamweaver生成的HTML
的代码是
<table cellpadding="5" cellspacing="1">
<tr>
<td align="center">
<form action="search.php" method="get">
<table><tr><td>
<input type="text" name="query" id="query" size="40" value="<? print quote_replace($query);?>" action="include/js_suggest/suggest.php" columns="2" autocomplete="off" delay="1500">
</div>
<td>
<input type="submit" value="Search!">
</td></tr></table>
当我在Chrome浏览器查看源代码只加载
<table cellpadding="5" cellspacing="1">
<tr>
<td align="center">
<form action="search.php" method="get">
<table><tr><td>
我认为你的帖子中有错误。是表单标签还是外部的'action =“include ...'的部分? – 2011-04-20 14:10:34
孤儿?在表单元格中关闭DIV也 – 2011-04-20 14:11:31
我会猜测它在这行代码中抛出一个错误:'<?打印quote_replace($ query);?>'尝试使用''标记代替简写 – thedaian 2011-04-20 14:14:39