フォーム内のデータが に送信されませんsearch.php
。
<form class="form-search" action="search.php" method="get">
<input type="text">
<button type="submit">Search</button>
</form>
// search.php
<h2>Searched <?php print $_GET['username']; ?>; Returned 5 Results from Query.</h2>
注意: 未定義のインデックス: C:\xampp\htdocs\Web\Statistics\search.php の 40 行目のユーザー名
したがって、データは に設定されませんでした$_GET
。