【发布时间】:2014-04-12 12:53:36
【问题描述】:
我正在使用由不同的 php 包含构建的动态网站。我有一个特定的文本框,可以让用户输入任何名称并将其提交到下一页。
<form action="pages/searchResult.php" method="get">
<div style="text-align: center"><input type="text" placeholder="Enter first or last name" name="name" class="textbox"/></div>
<div style="text-align: center"><a href="main index.php?page=searchResult"><input type="Submit" value="Search" class="css_button"/></a></div>
</form>
我使用表单的事实已经让 searchResult 页面覆盖了所有内容。我只想将它加载到特定的 div 中,这样它就不会与 header.php 和 footer.php 设置混淆。我希望它不会取代一切。
-------------------------------------------------------------------------------------------
**include ('header.php');**
-------------------------------------------------------------------------------------------
**include ('content.php');** [switch case]*(Where I want the searchResult.php to be loaded)*
-------------------------------------------------------------------------------------------
**include ('footer.php');**
-------------------------------------------------------------------------------------------
【问题讨论】:
-
他们对谷歌的关键字是“Ajax”
标签: javascript php jquery css