Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4618602
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T02:17:26+00:00 2026-05-22T02:17:26+00:00

I need a little help understanding how HTML forms work. It is my understanding

  • 0

I need a little help understanding how HTML forms work. It is my understanding that forms that use GET as their method submit name/value pairs for all fields within the form tags of said submission. However, if you take a look at the follow example from Google (and I’ve seen this in many other places too) and only use one of the fields on the form:

http://books.google.co.uk/advanced_book_search

Rather than being sent to a page with a name/value pair for each field of the advanced search page you are taken to a much cleaner looking URL:

http://www.google.co.uk/search?tbo=p&tbm=bks&q=hitchiker&num=10

Despite all of the input fields on the advanced search page.


Onto my problem… My own advanced search page is quite large and at the moment is being POSTed to my search results page which is taking in the values and searching accordingly, no problems! However, I want my users to be able to bookmark/share their searches and in order to do this I need to have items being passed into the querystring but I don’t want massive querystrings if I don’t need them. If my user has only searched by a color for example then I want the URL to be something like search.aspx?color=red; If they’re searching by color and size then search.aspx?color=red&size=large and so on. Is this possible?

To complicate things even further I’m using ASP.NET so it’s not the easiest of things to create a form that uses GET though I do believe I have already found away around this.

If you can give any advice or a nudge in the right direction, then thank-you! 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T02:17:27+00:00Added an answer on May 22, 2026 at 2:17 am

    What you’re suggesting should be easily possible if you conditionally check the querystring on the results page to ensure the key/value is there.

    if(Request.QueryString["color"] != "")
    {
        // Add color to the seach parameters
    }
    

    To create the GET request I would think you would need to POST back to your search form and redirect to the results form from there, dynamically adding key/values to the querystring as and when they are required. This Post/Redirect/Get design pattern is typically used with web forms to help with book marking.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need a little help understanding something. I am using the colorbox plugin to
I'm a SQL noob, and I need a little bit of help understanding the
I need a little help on this subject. I have a Web application written
I am getting a little confused and need some help please. Take these two
I need help understanding what the advantage of using an asynch framework is. Suppose
Need a little help with string formatting... I have a string like this: Bmw
I need a little help if someone's got a minute. I've written a web
I'm a PHP programmer by default, and I need a little help with a
I need to solve the following question which i can't get to work by
I'm new to C# (asp.net) so i need little help. On this forum I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.