Re: read only texbox to html with php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The fact that you are using stripslashes tells me that something is
very very very wrong somewhere...

For output to the textarea, just htmlentities should be sufficient.

Emailing HTML "enhanced" newsletter will reduce the number of people
who actually read the dang thing, you know.

On Wed, March 21, 2007 6:51 am, Ross wrote:
> I have a readonly textbox that gets mailed as a newsletter. The text
> is a
> standard covering letter. The problem is when I try and convert it to
> html
> it doesn't work  It is inserted into a variable via a form textarea
> $mail_text.
>
>  "....available on the web site <a
> href="http://www.myurl.org";>http://www.myurl.org</a> so you can see
> who is
> doing....."
>
> I tried this
>
> htmlentities((stripslashes($mail_text)));
>
>
> Any ideas?
>
> R.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux