【发布时间】:2023-03-15 23:58:01
【问题描述】:
当我在下面运行以下代码时,它可以在 Dreamweaver 中运行,但是当我在网络浏览器中查看它时,没有任何显示。
代码是
<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...的部分是在form标签里面还是外面? -
孤儿?在表格单元格中关闭 DIV 也
-
我猜它在这行代码上抛出了一个错误:
<? print quote_replace($query);?>。尝试使用<?php ?>标签而不是简写。 -
您的 php 短标签也不准确。请务必更改为
<?php ... ?> -
@thedaian .. 我输了决斗。