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

Development Tools HTTP Basics GET and POST Requests in a Browser Using Forms for GET Requests

Why would an input form have 4 inputs for only 1 search?

For what reason would an input form have 4 inputs for only 1 search? I notice in the video there are 4 inputs with only 1 visible and the other 3 are all hidden.

This wasn't covered in the lesson but I'm curious to know if anyone can provide some insight.

Thanks in advance (=

1 Answer

The hidden values are set by other conditions, and are used by the server to handle the request.

This is entirely depending on how the server was set up. If you make your own form, you won't need that, unless you set up your server that way.