Home  >  Article  >  Backend Development  >  How to close iframe in php

How to close iframe in php

coldplay.xixi
coldplay.xixiOriginal
2020-10-12 13:54:252574browse

php method to close iframe: first create a PHP file and name it [test.php], write HTML content; then use the a tag to create a link to jump to test2, and set the link to Carrying two parameters; finally create another page and use echo output to receive the parameters.

How to close iframe in php

php method to close iframe:

1. Create a PHP file and name it test. php.

How to close iframe in php

2. In the test.php file, write HTML content (including title, body, metadata, etc.) to display the page.

How to close iframe in php

3. In the test.php file, inside the body tag, use the a tag to create a link to test2.php, and set the link to carry two Parameters, one is act and the other is num.

How to close iframe in php

4. Create another PHP page named test2. to receive the value passed from the test.php page.

How to close iframe in php

#5. In the test2.php file, use echo to output the received act and num parameters.

How to close iframe in php

6. Open the test.php file in the browser, click the link, and jump to the test2 page. , and view the output of the received act and num values.

How to close iframe in php

If you want to learn more about programming, please pay attention tophp Training column!

The above is the detailed content of How to close iframe in php. For more information, please follow other related articles on the PHP Chinese website!

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