I Can Send Form Data Using Get Method But Not Post, Why?
So I'm trying to learn html+php but it seems like I've hit a wall. If I use the GET method in my html form, parameters are sent to my php file just fine, but if I try to do the sam
Solution 1:
If you're using Chrome
- Go to index.html
- Press f12. Developer tools will show up
- Click Network
- Tick Preserve Log and Disable Cache (I usually just do it that way)
- From index.html click the submit button (do not close dev tools)
- Go back to developer tools click 'teste.php'
- Click headers, then expand general. You will see 'Request Method'. It should be POST
After working with @MuriloRM we ended up with the fundamental bug with PHPStorm
Please vote up the resolution of the issue https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000097930-Can-not-use-POST-method-in-PhpStorm
Post a Comment for "I Can Send Form Data Using Get Method But Not Post, Why?"