PHP – Redirect and send data via POST

You can’t do this using PHP.

As others have said, you could use cURL – but then the PHP code becomes the client rather than the browser.

If you must use POST, then the only way to do it would be to generate the populated form using PHP and use the window.onload hook to call javascript to submit the form.

Leave a Comment