Development environment: Xampp,mac,phpstorm
In fact, the reason for this problem is that phpstorm, which is the default use of the internal server, the server uses 63342 port, and the internal problems of the server, causing the post method is abnormal, and if the project is placed in the Apache server working directory, Enter localhost in the Address bar, at which time the Apache server is used and the default port number is 80,apache server to run the program properly.
Workaround:
Step Two: Select deployment, then click +
Step three: Name input localhost, type select in place,
Next, change to your Apache installation htdocs path, my is the path is shown in the figure (MAC), you find their corresponding Apache server working root directory, the problem is resolved
If you feel useful, just like it, so that you can help more people, if there are problems, leave a message.
PHP Form form Post submission gets no data, while using get commit can get data solution