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

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

WBOY
WBOYOriginal
2016-06-13 10:56:53834browse

请问在一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();


pages/login-template.php:
PHP code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
用户登录
用户名
密码


这样ob_start这个form有效吗?

------解决方案--------------------
为什么没效?ob_start();开启缓存嘛,不影响
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