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

ab199
Full Stack JavaScript Techdegree Student 17,446 PointsHow do we write an HTML search function?
I need to write a search function using HTML. It has to use my special link that will pull data from one website, into mine.
1 Answer

Arthur Verschaeve
20,816 PointsYou cannot provide a search function with just HTML. You need to learn PHP to do that.
Kevin Korte
28,149 PointsKevin Korte
28,149 PointsAgreed, the HTML you will need will be a form element, a search input, and a button if you want (otherwise enter key) to do the search, and any extra inputs like drop downs, radio buttons, etc. The actual search has to happen with a server side language. Ruby, PHP, etc.
By special link, I assume you're talking about a JSON response?
ab199
Full Stack JavaScript Techdegree Student 17,446 Pointsab199
Full Stack JavaScript Techdegree Student 17,446 PointsNot really a JSON response, I think. Basically, it's just some HTML code that will display the search functions from another site. I think it's created using the Object element.
Kevin Korte
28,149 PointsKevin Korte
28,149 PointsDo you have a link or some example? I'm not really sure how to answer your question right now.
ab199
Full Stack JavaScript Techdegree Student 17,446 Pointsab199
Full Stack JavaScript Techdegree Student 17,446 Pointshttps://s3.amazonaws.com/satisfaction-production/s3_images/675979/A2.jpg