I want to know how to detect if $_POST is set or not.
Right now I detect it like this:
if(isset($_POST[\'value\']))
But I\'m not lo
Try with:
if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {}
to check if your script was POSTed.
If additional data was passed, $_POST will not be empty, otherwise it will.
$_POST
You can use empty method to check if it contains data.
empty
if ( !empty($_POST) ) {}