I have a form, and in a php form the user chooses city and state (source / destination), so the user clicks the search, so system searches the carriers that serve those cities and states, along with carriers appears a map.
Now begins my problem. Once the user clicks on "Tracing Route" I take away from city to city, sendig $. post(), get the distance and update the divs "price" (are dynamically created, depending on how many carriers serving that route) I did it just to test.
In the database of each carrier has a field "precoMetro" which is as a carrier charges for meters. Now I wanted to know one way rather than put away, I put the same price, do the math.