所以我目前正在关注这个PHP表单的教程和ive使它到目前为止测试表单的页面的底部,http://www.webreference.com/programming/php/search/2.html “Save你的文件并在这里测试你的表单(search_display.php)。“ 当我在Dreamweaver的w设计视图中输入用户名并点击提交时,没有任何反应(好像页面正在刷新),但是,当我从我的MySQL(XAMP和phpMyADmin)服务器目录导航到我的文件时,我可以查看我的搜索页面,但没有文本框/区域供我输入任何数据。我已经逐字跟踪/复制了本教程,并且我很不确定为什么我无法将数据提交给查询。下面是代码为我的搜索页面需要帮助获取表单提交/去提交区域
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
\t <head>
\t \t <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
\t \t \t <title>Search Contacts</title>
\t </head>
<p>
<body>
\t <h3>Search Contacts Details</h3>
\t \t <p>You may search either by first or last name</p>
\t \t <form method="post" action="search.php?go" id="searchform">
\t \t <p>
\t \t \t <input type="submit" name="submit" value="Search">
\t \t </p>
\t </form>
</body>
</p>
</html>
谢谢你们的帮助。
显示的表格没有用户填写的文本输入。为了更好地理解各种表单控件本身以及表单在浏览器中的工作方式,可能会对'html表单进行一些网络搜索 – charlietfl