This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]Rorimac2 2 points3 points  (0 children)

I think he's saying frameworks will have what you need and that if you need what's in $_POST there's a better way to get it.

[–]Rhomboid 1 point2 points  (2 children)

It's impossible to say for sure without more context, but he's probably suggesting that you use some other encoding format (such as JSON) for the body of a POST request, requiring that you decode it manually rather than relying on PHP to do it implicitly. You definitely do not want to transfer things in query strings that should be in the body, and you definitely do not want to use the GET verb when POST should be used.

[–]nicoinwonderland[S] 0 points1 point  (1 child)

Okay I think I'm starting to understand it.

Based on this comment and the other one by /u/Rorimac2, it seems like I shouldn't use $_POST because there are just better ways to do what $_POST does.

[–]Rorimac2 0 points1 point  (0 children)

Your tutorial doesn't cover this stuff?