Dropdown in php

how to load dropdown based on another selected dropdown value by static

If both the dropdown has static values use if-else condition using javascript else write an ajax script on “onclick” event of the parent drop down. Pass the value of the selected dropdown value as POST/GET variable… The URL in ajax call should point to function if you using MVC framework or should point to a php file where in you should write a query to get the child dropdown values based on the REQUEST variable…

You should loads of example if you search it on web…