请教在一PHP文件中引用另一PHP文件中的<form>有效吗

WBOY
Release: 2016-06-13 13:07:29
Original
753 people have browsed it

请问在一PHP文件中引用另一PHP文件中的

有效吗
rt

1.php:
PHP code
<!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

-->
ob_start();

include 'pages/login-template.php';

$loginForm = ob_get_clean();

Copy after login


pages/login-template.php:
PHP code
<!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

-->
Copy after login
用户登录
用户名
密码


这样ob_start这个form有效吗?

------解决方案--------------------
为什么没效?ob_start();开启缓存嘛,不影响
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template