Re: Form Post to different domain
| From: | Tedd Sperling | Date: | Thu, 16 Feb 2012 14:53:15 +0000 |
| Subject: | Re: Form Post to different domain | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-316616@lists.php.net to get a copy of this message | ||
On Feb 14, 2012, at 1:39 PM, Daniel Brown wrote:
> On Tue, Feb 14, 2012 at 13:36, Rick Dwyer <rpdwyer@earthlink.net> wrote:
>>
>> I only have access to domain B... the one receiving the Form POST.
>
> Then all you should need to do is:
>
> a.) Verify that Domain A is indeed pointing to Domain B, to
> the script you expect, as a POST request.
> b.) In the POST-receiving script on Domain B, try this simple snippet:
>
> <?php
> echo '<pre>'.PHP_EOL;
> var_dump($_POST);
> die('</pre>');
> ?>
>
> That should give you all data from the post request.
>
> --
> </Daniel P. Brown>
> Network Infrastructure Manager
> http://www.php.net/
Why the '.PHP_EOL' ?
I've never seen that before and looking through the PHP documentation doesn't give me
much.
Cheers,
tedd
_____________________
tedd@sperling.com
http://sperling.com