I just started learning PHP. I searched a lot online but I can’t use the $_post function to print out the form data
This is the code
HTML part
php test
PHP部分 按提交按钮后只能打印出php的代码
I just started learning PHP. I searched a lot online but I can’t use the $_post function to print out the form data
This is the code
HTML part
php test
PHP部分 按提交按钮后只能打印出php的代码
Make sure the formaction
path is correct
php
’sPOST
receives a writing error. It needs to be capitalized$_POST['fs']
. Your lowercase method will be parsed into a variable
$_POST
Capital letters.
PHP variables are case-sensitive. Methods, function names and constants are not distinguished (but they are still required to be consistent). They need to be capitalized as the friend above said, use $_POST[], and you said you can print out php Code, I think it shouldn’t be possible.