[PHP] PHP inserting carriage returns into POST values?

2009-09-04 Thread James Colannino
Hey everyone. I ran into a really weird issue that I was hoping I could find some clarification on. In short, I have javascript functions that operate on hidden text values. Those values may be posted, in which case PHP then prints them back to the page via what comes in on $_POST. The weird

Re: [PHP] PHP inserting carriage returns into POST values?

2009-09-04 Thread Andrew Ballard
On Fri, Sep 4, 2009 at 3:16 PM, James Colanninoja...@colannino.org wrote: Hey everyone.  I ran into a really weird issue that I was hoping I could find some clarification on.  In short, I have javascript functions that operate on hidden text values.  Those values may be posted, in which case

Re: [PHP] PHP inserting carriage returns into POST values?

2009-09-04 Thread James Colannino
Andrew Ballard wrote: Javascript interpolates \n as a newline character inside both double and single quotes unlike PHP that only interpolates inside double quotes. If the client browser is running under Windows, it may even be possible that the \n is recognized by the browser as a line

Re: [PHP] PHP inserting carriage returns into POST values?

2009-09-04 Thread Paul M Foster
On Fri, Sep 04, 2009 at 12:16:47PM -0700, James Colannino wrote: Hey everyone. I ran into a really weird issue that I was hoping I could find some clarification on. In short, I have javascript functions that operate on hidden text values. Those values may be posted, in which case PHP then