Php+ajax cascading menu [No Refresh cascading menu]_php Tutorial

Source: Internet
Author: User
This one netizen publishes the Php+ajax cascading menu, we often say is no refresh.

This one netizen publishes the Php+ajax cascading menu, we often say is no refresh.

Header ("CONTENT-TYPE:TEXT/HTML;CHARSET=GBK");//output code to avoid Chinese garbled
Require_once (DirName (__file__). " /include/config_base.php ");
Require_once (DirName (__file__). " /include/inc_type.php ");
Require_once (DirName (__file__). " /include/inc_cache.php ");

$fatherid = "";
$fatherid =$_get[' Fatherid '];

if (!empty ($fatherid)) {

if (!file_exists ('/cache/sun_ '. $fatherid. ' _cache.txt ')) {

$ty = new Type (0);

$typeOptions = $ty->getsmalloption ($fatherid);

if (!empty ($typeOptions)) {

Cache_write ('/cache/sun_ '. $fatherid. ' _cache.txt ', $typeOptions);

echo "RN "; echo $typeOptions; echo"";

$tl->close ();

}

}else{

$typeOptions =cache_get ('/cache/sun_ ' $fatherid. ' _cache.txt ');

echo "RN "; echo $typeOptions; echo"";

}
}
?>






Header ("CONTENT-TYPE:TEXT/HTML;CHARSET=GBK");//output code to avoid Chinese garbled
Require_once (DirName (__file__). " /include/config_base.php ");
Require_once (DirName (__file__). " /include/inc_type.php ");
Require_once (DirName (__file__). " /include/inc_cache.php ");
$pid = "";
$pid =$_get[' pid '];
if ($pid ==1) {

if (!file_exists ('.. /cache/bigtype.cache.txt ')) {


$ty = new Type (0);


$typeOptions = $ty->getbigoption ();


Cache_write ('/cache/bigtype.cache.txt ', $typeOptions);


echo "RN "; echo"--Unlimited column--rn "Echo $typeOptions; echo"";


$ty->close ();

}else{


$typeOptions =cache_get ('/cache/bigtype.cache.txt ');


echo "RN "; echo"--Unlimited column--rn "Echo $typeOptions; echo"";

}
}

?>

http://www.bkjia.com/PHPjc/630480.html www.bkjia.com true http://www.bkjia.com/PHPjc/630480.html techarticle This one netizen publishes the Php+ajax cascading menu, we often say is no refresh. This one netizen publishes the Php+ajax cascading menu, we often say is does not have the refresh. PHP header (C ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.