Jump to content

URL GET Parameters search


hannibal

Recommended Posts

I have a site where a user can select various multiple items from select boxes to determine their search results.

 

I am using GET as the posting method so that a user can navigate back and forwards with out the "Page Expired" page being displayed and so that they can copy the URL can use it later or send to a friend to see the same search result.

 

This could boviously be quite long, which isn't really too much of a problem. A link may be:

www.mysite.com/search.php?location=southwest&location=southeast&car=ford&model=gt&year=1996&year=1997&low_price=2000&high_price=4000

 

However, I have noticed with sites that use .aspx that they have folders like : www.anothersite.com/location-southwest/car-Ford for example.

Another example is www.Autotrader.co.uk. How does copying the folers/directorys reproduce the search?

 

Does anyone have any suggestions how I keep a shorter/tidy url string, or do I simply have to have a mega long string with all my GET parameters? I can't really see a way around it. I am using PHP5 & MySQL 5 (LAMP).

 

Thanks,

 

Hannibal.

Link to comment
https://forums.phpfreaks.com/topic/95066-url-get-parameters-search/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.