<form action="/" method="get"> <input type="text" name="search" placeholder="Search..."> <input type="submit"> </form> <?php echo $_GET["search"] ?>