ผิดตรงไหนอ่ะครับ
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<form method='post ' action='cal.php' >
<input type="text" name='a'>+
<input type="text" name='b'>
<input type='submit' value='คำนวณ'>
</form>
</body>
</html>
----------------------------------------------------------หน้าแรกครับ------------------------------------------------------
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<?php
echo $_POST=["a"]+$_POST=["b"];
?>
</body>
</html>
----------------------------------------------------------หน้าสองครับ------------------------------------------------------
PHP ผิดตรงไหนครับ
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<form method='post ' action='cal.php' >
<input type="text" name='a'>+
<input type="text" name='b'>
<input type='submit' value='คำนวณ'>
</form>
</body>
</html>
----------------------------------------------------------หน้าแรกครับ------------------------------------------------------
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<?php
echo $_POST=["a"]+$_POST=["b"];
?>
</body>
</html>
----------------------------------------------------------หน้าสองครับ------------------------------------------------------