Check out Scrivo

Do you want to try out Scrivo? Then here's a demo for you that does not just get your feet wet but lets you plunge right in.

Contact us

For more information, please contact us. We're happy to help you out!

Next Oct 11 Previous

I don't know what I want but i know how to GET it.

You have to write a procedure to deal with a request that sends some value using the name "data" using either POST or GET. How can you retrieve this value:

A: $_POST["data"]
B: $_GET["data"]
C: $_REQUEST["data"]
D: $_ENV["data"]
E: by parsing $HTTP_RAW_POST_DATA


When you want to get the request parameters send but you don't know what method was used it is most easy to use $_REQUEST. This superglobal contains the contents of $_GET, $_POST and $_COOKIE variables.

Note that the behavior of $_REQUEST depends on settings in your ini file.