Click to See Complete Forum and Search --> : SEARCH URL QUERY OR placeholder ???


hthweb
07-28-2004, 06:06 PM
Right I don't know which name to give to my question but you will understand me and I hope help me.

Because my (cgi page) don't have the option to keep the search query in the search result template page I need your help.

Here is an example with AutoTrader.co.uk
When you click this link you go to the result page which keep the search query - in this link we search for - ALFA ROMEO 145 BETWEEN 1000 AND 5000 AND POST CODE IS w13 0np
http://atsearch.autotrader.co.uk/WWW/cars_search.asp?modelexact=1&lid=search_used_cars_full&make=ALFA+ROMEO&model=145&variant=&keywords=&min_pr=1000&max_pr=5000&mileage=&agerange=&postcode=w13+0np&miles=40&max_records=50&source=0&photo=1&sort=3&ukcarsearch_full=SEARCH

########################################

For now I can do it using javascript like here:
http://www.bodytouch.co.uk/advanced_search_result.php?keywords=Sydney

with text field - as you can see the result template parse the word "Sydney" in the search box.

I REALLY NEED YOUR HELP GUYS, I WANT TO FIND A WAY TO DO THE FIRST EXAMPLE - WITH NOT ONLY TEXT FIELD BUT - DROPDOWN, CHECKBOX...ETC.


Thanks a lot.

shimon
07-30-2004, 03:41 AM
I suspect you just need to change the form submission method from POST to GET, that way the search criteria will show up in the URL and you can bookmark the results, link to them etc.