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

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

WBOY
Release: 2016-06-08 17:29:43
Original
1379 people have browsed it

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

?>

Related labels:
source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template