php+js实现省市[select下拉列表]二级关联菜单效果
<script>ec(2);</script>
表单元素[select下拉列表]制作二级联动菜单
$link = mysql_connect('localhost','root','root') or die( mysql_error());
mysql_select_db('cshouse',$link) or die('db error');
mysql_query("set Names'gbk'");
/*$sql = "Select * from zgy_classplace where upid=0 order by id asc";
$result = mysql_query( $sql );
$i =1;
$count = mysql_num_rows( $result );
$b=',';
while( $rs = mysql_fetch_array( $result ) )
{
if( $i==$count ){ $b =''; }
echo " new Array("$rs[id]","$rs[cntitle]")$b nt";
$i++;
}
echo ");";
*/
?>
if($_POST)
{
print_r($_POST);
}
?>