Home  >  Article  >  Backend Development  >  PHP表单提交,结果显示的是处理表单页面的文件名?解决方案

PHP表单提交,结果显示的是处理表单页面的文件名?解决方案

WBOY
WBOYOriginal
2016-06-13 13:50:571013browse

PHP表单提交,结果显示的是处理表单页面的文件名?
这个是表单所在页面



figure   1.4



Your   Name:


Cost   of   a   Lunch:


Days   Buying   Lunch:







这个是处理页面,只定义了



$Today   =   date( "l   F   d,Y ");
?>


Today 's   Date:

print( "

$Today

");
print   ( "$YourName,your   will   be   out     ");
print   ($CostOfLunch*$DaysBuyingLunch);
print   ( "   dollars   this   wek.
\n ");
?>



但是我点击提交后,并没有解析文件内容,而是显示   “blank15.php”,15.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