Hi Melanie,
> > Presumably because you're viewing $message with an
> > HTML-aware viewer...
> > maybe a web browser or an HTML email client?
>
> Like I said, a *very* newbie question. But why doesn't
> /n work? All the listings I look at use /n for a new line.
If you look at the source code for the page (or the email in a text-only
mail client), you'll see what \n is for :-)
HTML completely ignores "whitespace" - spaces, tabs, line breaks - you might
have noticed that you can do things like this:
<p>
This is
a
paragraph
</p>
Browsers should render this as one paragraph. \n counts as "whitespace" and
so it doesn't show up on the display.
Incidentally, this is what things like <pre> are for when you've finished
with $message, try this:
$message = "<pre>". $message. "</pre>";
It'll look like a mess but you should see the line breaks :-)
Cheers
Jon
____ � The WDVL Discussion List from WDVL.COM � ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED]
Send Your Posts To: [EMAIL PROTECTED]
To change subscription settings to the wdvltalk digest version:
http://wdvl.internet.com/WDVL/Forum/#sub
________________ http://www.wdvl.com _______________________
You are currently subscribed to wdvltalk as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]