Quick error handling

If posting to PHP is not successful display error message and log the
PHP return data