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

General Discussion

I Need help developing search and forms in a website

Hi everyone!! I am a newbie coding website with HTML and CSS. However, In the present I am trying to help my friend with a website she is starting. She needs to develop a search bar that will search within the website. I dont know how exactly to do this. Is there a database that has to be created? How should the information be saved? On the other hand, she is also trying to add in her website a box where you can select many options per se: colors: red, yellow, blue, purple and you can select several while holding the control or option key. Can anyone guide me and help me figure this out? I would highly appreciate it!! Thank you in advance :D

5 Answers

Kevin Korte
Kevin Korte
28,149 Points

The search functionality can be learned thorough the PHP lessons here, and here are some options for using select options. http://ivaynberg.github.io/select2/

Checkboxes might work too? I guess it depends.

thank you very much. I will look into this :D

Google provides some custom search tools that you could use. I just checked them out for awhile and they seem pretty good, especially for free.

What will the options box do? Does it change how the website looks?

Hi Ryan,

The options box will redirect to different parts of the website. I am planning to do entries that have several tags and depending on what someone is looking for, you can come up with a list of options that match your search. For example cloth: Skirts, pants, watches, shoes, shirts. And you select 2 of those searches and then the search reveals everything that is skirts and pants per se.

Oh yeah, I know exactly what you're talking about now! Kevin Korte is right on with the checkboxes; you'll want to use those.

It sounds like you're developing an e-commerce site; am I right?

YES :D

Thank you very much!!

No problem. However, it sounds like you'll need a few more tools in your toolbox. I suggest that you finish the Simple Website course and try to take some PHP, JavaScript, and MySQL courses, especially the PHP Shirts 4 Mike courses that Kevin suggested.

m

Kevin Korte
Kevin Korte
28,149 Points

Depending on what you want, and your budget, you may want to look at e-commerce solutions like woocommerce, shopify, magento, etc.

You also would likely benefit greatly from doing the entire Shirts 4 Mike e-commerce project here.

Oh great I will look into it :D I am looking initially to do some kind of "yelp" first where you can search for very specific related items and acquire information that has been input by users and developer.. and then in a couple of months developing an online store like mentioned above! Thank you for all the information provided. Very valuable!!

Thank you all :D