26
Apr
Access to HTTP request fields
Comments
You can easily get values of HTTP request parameters and form fields.
For instance, if you need to get the value of the get parameter order_id, use the variable : {$_GET.order_id}
. For a form submission with the HTTP method POST, use {$_POST.order_id}
. Or use a universal way, if you don’t know for sure, what HTTP method will be used: {$_REQUEST.order_id}
. The same ways you can get values from the $_SERVER variable.