The page jump part method in PHP is discussed

Source: Internet
Author: User

Assume the current page: http://localhost:80/index.php

1.include

echo "Include t1.php";

After jumping, the URL address bar http://localhost:80/index.php Neither the current page address nor the current page includes the t1.php page.

If you click the Submit button again, the database will repeatedly insert the same data, you need to be aware.

2.header function

Header ("location:http://localhost:82/zend-test/phptest/index.php");

After the jump, the URL address is: location:http://localhost:82/zend-test/phptest/index.php

The address becomes the address of the page you want to jump to, and you can insert the data again.

The page jump part method in PHP is discussed

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.