hi moizshabbir,
welcome to p2p!
when user selects region
reload the page using the selection of dropdown,
take the region and make another query like
select * from district where Rid= "selected rid"
for populating dropdown
thinking you fetched data to an array using sql
for($i=0; $i < count($arr); $i++)
echo <option value=". $arr[$i] .">" . $arr[$i] . "</option>";
jomet.
`````````````````````````````````````````````````` ``````````````````````
Once you start a working on something, dont be afraid of failure and dont abandon it.
People who work sincerely are the happiest.
|