Go to saleage.com for and look at the grey bar to go along the instructions.
Must pull city, state and country from the visitors IP address and put that where the Your Location is.
If users want to change that location they can press Change and a ajax box will pop up with a list of different cities, states, countries. They type in an input which has a drop down that auto searches the whole list where then can click to select the right city, state, country choice. A good change icon could be: http://www.earthclaim.com/images/edit_icon.gif
Then once they select the new location the Your Location will change via ajax to the place they selected (and be highlighed showing that the search filter is the city instead of nationwide). Notice by default or when users change location the Your Location div needs to be neatly highlighted so it is obvious that the user knows what is selected as a filter. The page shouldnt refresh with the preference changes.
If they dont want to search by city and instead search by nation they can simply click Search Nationwide (which will highlight that telling the user that the filter for nationwide is set). The nationwide should be for the appropriate country of the users ip, and if they changed their location... then of that country.
This information (the city, state, country) will be posted in a hidden input so once the user presses submit we can grab that information from the search.php page.
I will code the search page, I just dont know ajax and I want the homepage search filter to run off ajax with those preference.
Any questions feel free to ask, this should be relatively straight forward project if you know ajax. I should also know the source to update the databases ip city, country list so I can keep up to date with the ip to city, state, countries list.