Re: [PHP] Form Post to different domain

2012-02-16 Thread Matijn Woudt
On Thu, Feb 16, 2012 at 5:02 PM, Daniel Brown wrote: > On Thu, Feb 16, 2012 at 10:57, Matijn Woudt 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 fil

Re: [PHP] Form Post to different domain

2012-02-16 Thread Daniel Brown
On Thu, Feb 16, 2012 at 10:57, Matijn Woudt 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 that people are

Re: [PHP] Form Post to different domain

2012-02-16 Thread Matijn Woudt
On Thu, Feb 16, 2012 at 4:09 PM, Daniel Brown wrote: > On Thu, Feb 16, 2012 at 09:53, Tedd Sperling 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 on the web, it makes a world of dif

Re: [PHP] Form Post to different domain

2012-02-16 Thread Daniel Brown
On Thu, Feb 16, 2012 at 09:53, Tedd Sperling 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, PHP_EOL will be \r\n

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 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 sc

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 B

Re: [PHP] Form Post to different domain

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

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 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 $_POS

Re: [PHP] Form Post to different domain

2012-02-14 Thread Daniel Brown
On Tue, Feb 14, 2012 at 13:14, Rick Dwyer 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) from the form > a