Skip to content
Advertisement

Tag: form-submit

What’s wrong with using $_REQUEST[]?

I’ve seen a number of posts on here saying not to use the $_REQUEST variable. I usually don’t, but sometimes it’s convenient. What’s wrong with it? Answer There’s absolutely nothing wrong with taking input from both $_GET and $_POST in a combined way. In fact that’s what you almost always want to do: for a plain idempotent request usually submitted

Advertisement