Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML

Search bar for your website

I'd like to add a search box to my website.

What tutorials should I take? Does anyone have any tips on other resources on this particular topic?

Any tips are appreciated.

Thanks!

3 Answers

Randy Hoyt
STAFF
Randy Hoyt
Treehouse Guest Teacher

What do you want the search box to do?

I'm working on the next PHP course now, and I'll be showing how to add simple search functionality to the catalog of shirts as part of that course. (You can find release dates for the course on the Roadmap now.)

Hey Randy,

I'm just looking for something real basic for a website. I'm not even sure where to start but i see now that you guys are working on a tutorial. Looking forward to it.

Thanks!

Hi Randy can you add a link to your video tutorial for adding a simple search bar to mike's tshirt shop?

Randy Hoyt
Randy Hoyt
Treehouse Guest Teacher

Certainly! There are two parts to it:

The first part shows how to add the search page with the form and input field, how to handle the form submission, and how to display the results. The second part shows how to look for the search term in the name of each shirt.

Hope that helps!