The tree directory looks novel and chic, and the internet is mostly JavaScript and PHP combination, I this one is used PHP4 write, with the session function, please read more comments. (I passed the test under WIN98/PWS/PHP4)
2001/02/23
Zhanghexun
Tree Catalog
Session_Start (); Start a session
if (!session_is_registered ("$office _action")) {
$office _action=0;
Session_register ("$office _action");//Register a session
}
if (!session_is_registered ("$pho _action")) {
$pho _action=0;
Session_register ("$pho _action");
}
if (!session_is_registered ("$web _action")) {
$web _action=0;
Session_register ("$web _action");
}
$office =array (' wps ', ' office2000 ', ' Beida founder '); Office Star Project
$pho =array (' Photoshop ', ' 3D MAX ', ' fish ', ' firworks ');
$web =array (' php ', ' asp ', ' JSP ', ' html ', ' JavaScript ', ' Perl ');
?>
<title>Zhang Hexing's Tree-type catalogue</title>
Learning Center |
if ($acte ==1000) { $office _action= 1-$office _action; } Print "" $php _self?acte=1000&office_action= $office _action ""; ?>> Office Star
Print |
"; for ($i =0; $iprint "
|-$office [$i] |
"; } Print
";
http://www.bkjia.com/PHPjc/445199.html www.bkjia.com true http://www.bkjia.com/PHPjc/445199.html techarticle The Tree directory looks novel and chic, and the internet is mostly JavaScript and PHP combination, I this one is used PHP4 write, with the session function, please read more comments. (This ... |