Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Aug 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Allow amendments to search form

    I have set up a search form on our homepage which allows users to search for properties to rent.
    They enter details like postcode, rent amount, number of beds etc. on the search form, hit submit and matching records from an access database are displayed on a new results page.
    I want to be to make it easy for the user to review the search criteria and amend it.
    Can I get the search criteria to display in another form on the results page or do I just expect the user to hit back to get back to the original completed form. If the Back button is the best method can I add a button/link on the results page to perform the same function as the back button on the toolbar.
    I am using Dreamweaver with ASP & VBScript.

  • #2
    Senior Coder Morgoth's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada Remaining Brain Cells: 6
    Posts
    1,402
    Thanks
    2
    Thanked 1 Time in 1 Post
    You can have a button that uses this:
    Code:
    <a href="javascript:history.back(1)">Back</a>
    But I suggest to never go back, always go forward.

    So keep track of the search questions, in a cookie or session, or anyway you see fit.

    And have a button that points to a new form that can take the session variables and allow the user to make changes.

    Sessions:
    http://www.w3schools.com/asp/asp_sessions.asp

  • #3
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,068
    Thanks
    0
    Thanked 256 Times in 252 Posts
    You don't need to put the criteria in a session. Just request each keyword again and put it in a field and have a Search button where users can re-do the search. Just like how google does it.
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •