0

can I get code to bring out the state under a country when the country is selected. both state & country from the database displayed in a select dropdown

3
Contributors
4
Replies
19
Views
2 Years
Discussion Span
Last Post by diafol
0

So what do you want from us? Show your code if you want help with it. I take it you weren't expecting us to write something for you.

0

I actually want to use it for selecting staff in a particular department.
I need what to write inside function displayStaff;

$tp='
<select name="department" onchage="displayStaff()">
while(list($x,$v))=each($department){
$tp.='
<option value="'.$v[dept_nr].'">';
$tp.=$v[departments];
$tp.=' </option>  ';
}
echo $tp.="</select>";





<select name="staffs">

...the staff for selected department should come up
but all the staffs do come up

</select>
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.