Home  >  Article  >  Backend Development  >  我这段代码有错吗?

我这段代码有错吗?

WBOY
WBOYOriginal
2016-06-23 14:14:33706browse

我这段代码有错吗?

echo '

';
?>







可是执行的结果是在text输入框前的前面,多了一些字符:

'; ?>

请问这是怎么回事?

回复讨论(解决方案)

是不是因为该文件的名字是login.html的原因?

含有 php 代码的文件需保存为 php 后缀的文件,或被 php 程序文件包含

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