奇怪的搜索表单行为

时间:2014-05-09 08:17:07

标签: javascript php jquery html css

我的画廊页面上有一种奇怪的行为。在页面的页脚我有简单的简单搜索表单,它应该在searchmyway.php页面上显示结果。相反,它只是让我到画廊页面的顶部,而不显示任何错误。我在其他页面上有相同的代码,但搜索表单按预期运行。我究竟做错了什么?

这是搜索完美运行的页面。搜索框位于页面底部。尝试搜索科罗拉多州的单词'。

www.rajeevthomas.com

这是导致问题的页面。请试试“科罗拉多州”这个词。在页面底部的搜索框中。

http://www.rajeevthomas.com/photos/

以下是我在页脚中的代码

<div class="footinner">
<form name="seeker" id="seeker" action="searchmyway.php" method="get"><input type="text" name="q" id="search"/>
<input type="submit"  id="find" value="Search" />
<input type="hidden" name="form_id:search" value="1" />
</form>
</div><!--footinner-->

1 个答案:

答案 0 :(得分:0)

查看两个文件的源代码,表单有所不同。

www.rajeevthomas.com (工作):

<form action="searchmyway.php" method="get">

www.rajeevthomas.com/photos / (不工作):

<form name="seeker" id="seeker" action="searchmyway.php" method="get">

我认为这可能与问题有关。

在没有nameid的情况下尝试一下。似乎没有必要。

相关问题