Jump to content

crossdomain posting


vampke

Recommended Posts

Hi people,

 

I am trying to cross domain post an html form.

When I post the form on the domain itself (form action="test.php" method="post") and I return

echo $_SERVER['REQUEST_METHOD'];

it returns "POST"

however when I put the very same file on a different domain and post it (form action="http://www.domain.invalid/test.php" method="post") it returns "GET" !

 

Does anybody understand why?

Link to comment
https://forums.phpfreaks.com/topic/280254-crossdomain-posting/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.