Forum Moderators: coopster

Message Too Old, No Replies

echoing a return in html

         

Sarah Atkinson

4:22 pm on Jun 13, 2005 (gmt 0)

10+ Year Member



can you force a return in the html code php generates so that the html isn't all on one line?

jatar_k

4:27 pm on Jun 13, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



you mean when you view source?

a newline character, which must be between double quotes

echo "\n";

Sarah Atkinson

4:58 pm on Jun 13, 2005 (gmt 0)

10+ Year Member



Thank you

Why did I not realise that?
I kinda feel like an idiot now.

jatar_k

6:10 pm on Jun 13, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



no reason to

my most common mistake is I put single quotes around them and they pop up in the output, do it all the time, drives me crazy ;)