Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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.