$_POST submit button not working on Edge or IE

Is your $_POST superglobal submit button not working on Edge or Internet Explorer? All you may need is to listen for $_SERVER[‘REQUEST_METHOD’] too.

Listen to server methods

If your $_POST superglobal’s submit button is not working on Edge or IE, you should also include $_SERVER[‘REQUEST_METHOD’] == ‘POST’ in your if statement, as per the example below.

if ( isset( $_POST['submit'] ) || $_SERVER['REQUEST_METHOD'] == 'POST' ) {
     // Process form
}