Hi,

I have a page that can be called by either post or get. $_request is supposted to handle that. I have never used $_request and am wondering if there are any problems using it instead of checking $_get and $_post separately, which I have done in the past, because I didn't know about $_request.

Thanks,

Larry

Recommended Answers

All 3 Replies

YOu may use $_REQUEST array without any trouble. It will contain both post and get data from previous page.

Thanks for the response!

Larry

Member Avatar for rajarajan2017

$_REQUEST An associative array that by default contains the contents of $_GET, $_POST and $_COOKIE. but this not trusted. It acts like a global variable. You can use this if you want to do with a page. but don't practice it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.