我的表單內的數據不會發送到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。