No $_POST values caught
已回答
I am testing a form to print_r array of field values sent by using action = "post". I can never get the values. However, if I use action="get" I can get all I want to see. I have been trying to resolve this problem for two weeks!
I have PhpStorm 10 installed on my Windows 8.1 with php 7.0.4 used as interpreter.
I would be grateful if anyone could help resolve this issue.
请先登录再写评论。
Hi there,
Based on your messages (this and another one about 502 error) as assume that you are using PhpStorm's own built-in simple web server (the URLs would be like "localhost:63342/PROJECT_NAME/")
Unfortunately IDE has issues at the moment with processing POST requests and similar (e.g. file uploading)
https://youtrack.jetbrains.com/issue/WEB-17317 -- watch this ticket (star/vote/comment) to get notified on progress.
The workaround is not to use built-in web server but to use your own proper Apache/nginx/IIS/whatever. For that -- create Deployment entry of appropriate type, configure it (provide proper URL there etc) and mark it as Default for this project. https://confluence.jetbrains.com/display/PhpStorm/Deployments+in+PhpStorm
Thanks for your reply. I will check it out about how to use another web server.
Thanks for your reply. I will check it out about how to use another web server.
Hi,
You can also create a Run configuration for a built-in server as per <https://www.jetbrains.com/phpstorm/help/php-built-in-web-server.html#2> and it should work fine with POST requests in that scenario.