Heim  >  Artikel  >  Backend-Entwicklung  >  请教在一PHP文件中引用另一PHP文件中的<form>有效吗

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

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

请问在一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();开启缓存嘛,不影响
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn