[thelist] Plain Text Newsletter in PHP with Problems

Raditha Dissanayake jabber at raditha.com
Thu Mar 18 11:20:25 CST 2004


Rob Smith wrote:

>if ($_GET["Preview"] == "Preview") { 
>  header("Location: http://www.mysite.com/PreviewNewsletter.php?newsletter="
>. $_GET["newsletter"] ."&subject=" . $_GET["subject"]);
>  
>
For large amounts of data always safer to  use POST

>At this point this works fine if the newsletter contained a single line of
>text. This will never happen for real. What will happen is multiple lines:
>
>Subject: test
>Newsletter: This is a test with a 
>hard carriage return
>
>PreviewNewsletter.php?subject=test&newsletter=this+is+a+test+with+a+%0D%0Aha
>rd+carriage+return&Preview=Preview
>
>What breaks the code for some odd reason is the :  %0D%0A
>
>Is this ascii for carriage return line feed as in the ASP version vbCRLF?
>  
>

%0D%0A is CRLF but there isn't any reason why that should break your script. Please share with us what error messages you are getting.


>
>  
>


-- 
Raditha Dissanayake.
---------------------------------------------------------------
http://www.radinks.com/upload/ 
Drag and Drop Upload thousands of files and folders in a single
transfer.  (HTTP or FTP) 



More information about the thelist mailing list