Setting Up the Search Form5:35 with Alena Holligan
This is such an important feature, I want to add a search box to every page. Thankfully that’s easy to do because we already have a header file that’s included on all the pages so we can add a search box right below our header bar. Then we’ll make some modification to our catalog page so we can use that same code to display results.
<div class="search"> <form method="get" action="catalog.php"> <label for="s">Search:</label> <input type="text" name="s" id="s" /> <input type="submit" value="go" /> </form> </div>
You need to sign up for Treehouse in order to download course files.Sign up