Organizational Research By

Surprising Reserch Topic

how to enable cross domain post ing in php using -'php,post,security'

how to enable cross domain post ing in php  using -'php,post,security'

I'm tying to send POST data from one site to another (both sites have been developed by us).
The problem is that the POST variables are not available if the page is requested from another domain.
Even if I test it locally, but specify the complete url, the POST data is gone.

So, this will work:

<form method="POST" action="test.php">

But this will not:

<form method="POST" action="">

Here is the HTML for the page:

    <form method="post" action="">
        <input type="text" name="request" value="" id="" />
        <input type="submit" value="" id="" />

After the comments I got that this should work, I tested it on another server and there everything worked fine indeed. This might have something to do with the fact on the first server https is enabled. But if this is the case, I find it strange that I do get information back but that just the POST data has gone missing.

asked Sep 7, 2015 by rajesh
0 votes

Related Hot Questions

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.