在php
The intention is to capture the input from the text box and display it when the submit button is clicked.但是,输出保持空白。 While the method="get" works seamlessly, method="post" poses a problem.
Troubleshooting the POST Request
To resolve this issue, consider the following steps:
Check the Action Attribute:
If you are刷新页面,将操作属性设置为空字符串,例如:;?>”
在PHP文件的开头添加以下行以正确处理发布数据: =“ application/x-www-form-urlencoded”;
} 考虑内存分配:
对内存分配保持警惕。分配超过2048MB可能会导致问题,具体取决于系统规格。
action=''
如果您修改php.ini和php作为apache模块,使用apache模块,使用类似命令的aspache, /etc/init.d/httpd restart 免责声明: 提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发到邮箱:[email protected] 我们会第一时间内为您处理。
Copyright© 2022 湘ICP备2022001581号-3