• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Search Page - question

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a search page with the following parameters.

Search by Name: (textbox)

Search by SSN: (textbox)

Search by Zipcode: (textbox)

The user enters info in the textboxes and hits the search button. It takes the user to the searchResults page that displays the list. This searchResults page has a "New Search" button. When the user hits this button, the search page is displayed, but with empty textboxes. What should I do to store the entered information and display it when they hit the "New Search" button?
for example, in the search page, if they enter Search by zipcode as "55535" and hit the search button. a list is displayed in the searchResults page. When they hit the "New Search" button, now it should go back to the search page and contain the zipcode "55535" in that textbox.

Any suggesstions?
 
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sessions? Or hidden fields? More elaborately, by session, you can store the search fields which can be retrieved anywhere till the session lives. Or, by other way, you can probably store the search criteria a in the search result page by hidden fields and then while submitting to the previous page again i.e. search page, try to retrive values came from the request parameter in the main search criteria page and then fill those textboxes with such values! By this, you can avoid session. But you need to take care that if there are no values of such parameters, fill the text boxes by "". I hope you are able to understand what I mean to explain!
 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am afraid "hidden fields" is better.
 
Always look on the bright side of life. At least this ad is really tiny:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic