As per the Support Guide linked below you cannot POST to a PHP script as Netlify doesn’t support PHP in that manner.
You can use Netlify’s built-in form handling (which based on the page source you have configured through the use of data-netlify="true") or post to a serverless function.