Home  >  Article  >  php教程  >  php+js实现省市[select下拉列表]二级关联菜单效果

php+js实现省市[select下拉列表]二级关联菜单效果

WBOY
WBOYOriginal
2016-06-08 17:29:431311browse

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);
}

?>

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn