Hey guys, I would help a little to understand how HTML forms work. I understand that forms that use GET as their method represent name / value pairs for all fields in the form tags of the specified view. However, if you look at the following example from Google (and I saw this in many other places too) and use only one of the fields on the form:
http://books.google.co.uk/advanced_book_search
Instead of sending a page with a name / value pair for each field of the advanced search page, you get to a cleaner URL:
http://www.google.co.uk/search?tbo=p&tbm=bks&q=hitchiker&num=10
Despite all the input fields on the advanced search page.
To my problem ... My own advanced search page is quite large and is currently POSTED to my search results page, which takes values ββand searches accordingly, no problem! However, I want my users to be able to add bookmarks / share their searches, and for this I need the items to be queued, but I don't need massive queries if I don't need them. If my user views only color, for example, do I want the URL to be something like search.aspx? Color = red; If they search by color and size, then search.aspx? Color = red & size = large and so on. Is it possible?
To make things even harder, I use ASP.NET, so it's not the easiest way to create a form using GET, although I believe I already found this.
- , !:)