Home >Backend Development >PHP Tutorial >Dynamic generation of cascading menu_PHP tutorial

Dynamic generation of cascading menu_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 16:06:35781browse



  if (isset($hierarchy)){
      //$hierarchy[] = $selection;
      if (isset($hierarchy)){
        while(list($level, $sel) = each($hierarchy)){
          echo "";
          echo $level, ': ', $sel, "
n";
          $nextlevel = (int) $level + 1;
        }
    }
  }
  else{
      $nextlevel = 0;
  }
  echo "n";
?>


 

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/315355.htmlTechArticleHTMLBODY BGCOLOR=FFFFFF FORM ACTION=?php echo $PATH_INFO? METHOD=POST ?php if (isset($hierarchy)){ //$hierarchy[] = $selection; if (isset($hierarchy)){ while(list($level, $sel) = ea...
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