I have a php form (code to follow) with a submit button that runs JSON-events.php as its action (method = POST). In the JSON-events co
JSON-events.php
action
method = POST
Conditions that you can use with $_POST
if(count($_POST)>0){ //... } if(isset($_POST['field_name'])){ //... } if( $_SERVER['REQUEST_METHOD'] == 'POST') { //.. }