Re: [PHP] Form Post to different domain

2012-02-16 Thread Tedd Sperling
On Feb 14, 2012, at 1:39 PM, Daniel Brown wrote: On Tue, Feb 14, 2012 at 13:36, Rick Dwyer rpdw...@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

Re: [PHP] Form Post to different domain

2012-02-16 Thread Daniel Brown
On Thu, Feb 16, 2012 at 09:53, Tedd Sperling tedd.sperl...@gmail.com wrote: Why the '.PHP_EOL' ? I've never seen that before and looking through the PHP documentation doesn't give me much. Cross-compatibility. For systems which use \n, PHP_EOL will be \n. For systems which use \r\n,

Re: [PHP] Form Post to different domain

2012-02-16 Thread Matijn Woudt
On Thu, Feb 16, 2012 at 4:09 PM, Daniel Brown danbr...@php.net wrote: On Thu, Feb 16, 2012 at 09:53, Tedd Sperling tedd.sperl...@gmail.com wrote:    This means you can rest assured that the newlines will be appropriate for the system on which PHP is running.  While it makes little difference

Re: [PHP] Form Post to different domain

2012-02-16 Thread Daniel Brown
On Thu, Feb 16, 2012 at 10:57, Matijn Woudt tijn...@gmail.com wrote: What if the system PHP is running on not the same one as the one that is going to read the plain-text/CSV/.. files? I don't think it is good practice to use it when writing to files. I often write files on a Linux server

Re: [PHP] Form Post to different domain

2012-02-16 Thread Matijn Woudt
On Thu, Feb 16, 2012 at 5:02 PM, Daniel Brown danbr...@php.net wrote: On Thu, Feb 16, 2012 at 10:57, Matijn Woudt tijn...@gmail.com wrote: What if the system PHP is running on not the same one as the one that is going to read the plain-text/CSV/.. files? I don't think it is good practice to

[PHP] Form Post to different domain

2012-02-14 Thread Rick Dwyer
Hello all. If I have a form on domain A that uses POST to submit data and I want to submit the form to domain B on an entirely different server, how do I pull the form values (... echo $_POST[myval] returns nothing) from the form at domain B? --Rick -- PHP General Mailing List

Re: [PHP] Form Post to different domain

2012-02-14 Thread Daniel Brown
On Tue, Feb 14, 2012 at 13:14, Rick Dwyer rpdw...@earthlink.net wrote: Hello all. If I have a form on domain A that uses POST to submit data and I want to submit the form to domain B on an entirely different server, how do I pull the form values (... echo $_POST[myval] returns nothing)

Re: [PHP] Form Post to different domain

2012-02-14 Thread Rick Dwyer
On Feb 14, 2012, at 1:16 PM, Daniel Brown wrote: On Tue, Feb 14, 2012 at 13:14, Rick Dwyer rpdw...@earthlink.net wrote: Hello all. If I have a form on domain A that uses POST to submit data and I want to submit the form to domain B on an entirely different server, how do I pull the form

Re: [PHP] Form Post to different domain

2012-02-14 Thread Daniel Brown
On Tue, Feb 14, 2012 at 13:36, Rick Dwyer rpdw...@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.

Re: [PHP] Form Post to different domain

2012-02-14 Thread Rick Dwyer
Thanks Dan. As it turned out the reason for not showing the passed values is that I didn't have www in the destination address and the values must have been getting lost when Apache redirected requests without www to the fully formed URL. --Rick On Feb 14, 2012, at 1:39 PM, Daniel