Warning: Unknown: POST Content-Length of 49 bytes exceeds the limit of 40 bytes in Unknown on line 0
Warning: Cannot modify header information - headers already sent in Unknown on line 0
我的HTML通过POST表单将4个字符串参数传递给一个PHP,当我不输入任何内容时,直到遇到检查$ _POST中的字符串是否为空的代码部分时,我都会遇到这些错误。 / p>
我在网上查找了文件,所有内容都与文件上传有关,但是为什么它确实发生在我身上?
关于创建稳定的PHP脚本,我还应该了解什么?我不希望我的用户看到这些东西。也许我至少可以在服务器上创建自己的页面之一,而不是将页面提供给客户端?
谢谢!
<html>
<body>
<form action="register.php" method="POST">
<input type="text" name="ID" placeholder="ID"><br>
<input type="text" name="PASS" placeholder="Password"><br>
<input type="text" name="UID" placeholder="ID2"><br>
<input type="text" name="UPASS" placeholder="Password2"><br>
<input type="submit" value="Register">
</form>
</body>
</html>
php.ini文件。
答案 0 :(得分:3)
将php.ini文件上的值从post_max_size=40
更新为更大的值。例如40m
。
并在更改完成后重新启动Apache。