i want to list the street names in one dropdown while select a city in another one dropdown…i’m using smarty template…and also i will store streetid in the database…please tell me any solution…already i have one solution but in that case every time i select one city that time the page will be loaded… so i need solution with out page loading option
My heartfelt advice is to get as far away from smarty as soon as you possibly can. It will do far more damage to your code and coding than it will help. It is the worst example of a bad idea to start with - a template engine in PHP (which itself began as a template engine for C++ and evolved into a language in its own right).
Smarty is a very small piece of what you would like to accomplish. The majority of solving the problem will have to do with things outside the template.
So the first question is where are the city and street names stored?
If you already have it working with page refreshes than this is more a JavaScript issue than it is a PHP issue. Though, PHP could come into play depending on how the data is retrieved from the back-end to populate the drop down using JavaScript.