Re: [PHP] \n is not working!

2004-04-04 Thread Chris Shiflett
--- Labunski <[EMAIL PROTECTED]> wrote: > Why do this line $new_topic = $post_0.'|'.$post_1.'|'.'$post_2\n'; > writes to > the document > one|two|three\n Actually, that's not true. Assuming: $post_0 = 'one'; $post_1 = 'two'; $post_2 = 'three'; The code you posted will store the following in $new

Re: [PHP] \n is not working!

2004-04-04 Thread Robert Cummings
On Sun, 2004-04-04 at 17:58, Labunski wrote: > \n isn't working properly. > > Why do this line $new_topic = $post_0.'|'.$post_1.'|'.'$post_2\n'; writes to > the document > one|two|three\n > but not > one|two|three (and break) Because it's in single quotes versus a double quotes. Cheers, Rob. --

[PHP] \n is not working!

2004-04-04 Thread Labunski
\n isn't working properly. Why do this line $new_topic = $post_0.'|'.$post_1.'|'.'$post_2\n'; writes to the document one|two|three\n but not one|two|three (and break) whole code: if ($a=="new"){ $post_0 = $_POST["one"]; $post_1 = $_POST["two"]; $post_2 = $_POST["three"]; if ($post_1 !=""){ i