我的表单内的数据不会发送到search.php。我也使用Twitter引导程序。HTML get方法不会发送数据到PHP
<form class="form-search" action="search.php" method="get">
<fieldset>
<input type="text" placeholder="Username" id="username" class="input-medium search-query">
<button type="submit" id="srchUser" class="btn">Search</button>
</fieldset>
</form>
我的PHP
<h2>Searched <?php print $_GET['username']; ?>; Returned 5 Results from Query.</h2>
5是静态的,放在那里供临时使用。当我使用表单发送数据时,出现此错误。
注意:未定义指数:用户名在C:\ XAMPP \ htdocs中\网络\统计\上线40
含义的search.php数据未发送到$ _GET。