Use PHP to set webpage navigation _ PHP Tutorial

Source: Internet
Author: User
Use PHP to set webpage navigation. Note: the principle of implementation is that a webpage contains a specific page, which must be added to your webpage to implement navigation? . The code is as follows :? If ($ idhome) {include (y description:

The principle of implementation is that a webpage contains a specific page, and you must add '? Id = pagename.

The code is as follows:

If ($ id = "home "){
Include ("yourhomepage.html ");
}
Elseif ($ id = "page "){
Include ("yourpage.html ");
}
// If your browser does not connect to the specified page, or an error occurs when you connect to the page, the following page is displayed.
Else {
Include ("yourpage.html ");
}
?>

The principle of "navigation" is that a webpage contains a specific page. In your webpage, you must add '? Id = pagename. The code is as follows :? If ($ id = home) {include (y...

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.