PHP in URL

Hello,

I’ve been using

http://www.saddlesblazin.com/search-results.php?city=arlington

to call out a store in a single ‘city’ in my locator through a link. Now I need to call out two cities. So, city=arlington (and) austin … how do I write this in the url?

Thank you.

You’re going to have to change the query code in your search-results.php page to be able to accept two parameters on the URL

http://www.saddlesblazin.com/search-results.php?city1=arlington&city2=austin
http://www.saddlesblazin.com/search-results.php?city=arlington,austin

There are numerous ways to do it on the URL, but you’re code is going to have to change to reflect the change on the URL.

I think the second way is better, so you can allow for an infinite amount of cities.

Thank you for the help!

Sponsor our Newsletter | Privacy Policy | Terms of Service