Home  >  Article  >  Backend Development  >  html页post给php,为什么变成下载php而不是显示php页?

html页post给php,为什么变成下载php而不是显示php页?

WBOY
WBOYOriginal
2016-06-02 11:29:481283browse

phphtml

刚开始学php
这是html页

please fnish it

Name:MrMrsMs

Email Address:

Response:This is ...excellentokayboring

Comment:

php页


$title=$_POST['title'];
$name=$_POST['name'];
$response=$_POST['response'];
$comment=$_POST['comments'];
print "

Thank,$title $name,for your comments

";
?>

我把post改成get也不行。用的是xampp,单独测试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