echo urlencode( "my funny\nmulti-line\ntext goes here\n" );

Do not leave html entities on the text, just urlencode the text as you want
it to appear.

Hope it helps,

Alejandro

PS: Isn't this generically explained on the user-guide? I think it does...

On Mon, Apr 7, 2008 at 6:05 PM, Bogus Bill <[EMAIL PROTECTED]> wrote:

>
>
> Arne K. Haaje wrote:
> >
> >
> > In the response, just use the linefeed symbol \n
> >
> > Like when using PHP;
> >
> > echo "Text on line 1\nText on line 2";
> >
> > This would produce a message with two lines :)
> >
> >
>
> This did not work for me.  I am running 1.4.1, and am using PHP on my
> website.  I want to give a list of scores, each separated by a linefeed.
> Here is a code snippet:
>
> while($row = mysql_fetch_array($result, MYSQL_ASSOC))
> {
>    echo "{$row['visitor']} &amp;nbsp;" .
>         "{$row['visitor_score']} &amp;nbsp;" .
>         "{$row['home']} &amp;nbsp;" .
>         "{$row['home_score']} &amp;nbsp;" .
>         "{$row['quarter']}" .
>         "\n";
> }
>
> The lines still run together.
>
> Thanks for your help.
>
> Bill Rigdon
>
>
> --
> View this message in context:
> http://www.nabble.com/How-do-I-display-linefeeds-in-message-%28PHP%29--tp16540472p16540472.html
> Sent from the Kannel - User mailing list archive at Nabble.com.
>
>
>

Reply via email to