I need to make a redirect from siteA to siteB, not just a redirect, but also send $_POST data to siteB.
After some research I found http_redirect()
function, which does what I was looking for. Unfortunately I can't use this function so I am looking for an alternative which would do the same thing.
Also tried header('Location: http://siteB.com', TRUE, 307);
and redirecting with $.post
(after some research I found out that $.post cant rederect with post values)
Any suggestions?
Edit:
Made it work by just adding siteB to the forms action parameter.. It sends post values to that url..