PHP echo不打印A1 + A2 + A3的$ sum。谁知道为什么?我正在使用xampp。 [英] The PHP echo dont print out the $sum of A1+A2+A3. Anybody knowing why? I am using xampp.
本文介绍了PHP echo不打印A1 + A2 + A3的$ sum。谁知道为什么?我正在使用xampp。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<DOCTYPE html>
<title>Test
<meta charset="UTF-8"/>
<center>
<table border="1"><tbody><tr><td>Your name</td><td></td></tr><tr><td>Your E-mail address</td><td></td></tr><tr><td>Your E-mail address</td><td></td></tr></tbody></table>
</center>
---------------------------------------- --------------
PHP文件名为adding.php
------------------------------------------------------
The PHP file called adding.php
<?php
if(isset($_POST['submit']))
{
$A1 = $_POST['A1'];
$A2 = $_POST['A2'];
$A3 = $_POST['A3'];
$sum = $A1+$A2+$A3;
echo "The sum is ".$sum;
echo "Test";
}
?>
< b>我尝试过的事情:
我已经完全不知所措了。谷歌一小时提示,但没有运气。
What I have tried:
I have don all that i can think off. Google an hour for hints, but with no luck.
推荐答案
_POST [' submit']))
{
_POST['submit'])) {
A1 =
A1 =
_POST [' A1'];
_POST['A1'];
这篇关于PHP echo不打印A1 + A2 + A3的$ sum。谁知道为什么?我正在使用xampp。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文