RE: [PHP] read only texbox to html with php
| From: | Edward Kay | Date: | Wed, 21 Mar 2007 12:07:52 +0000 |
| Subject: | RE: [PHP] read only texbox to html with php | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-251005@lists.php.net to get a copy of this message | ||
2007. 03. 21, szerda keltezéssel 11.51-kor Ross ezt írta:
> 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....."
>
If I understand correctly, you are setting the value of an HTML textbox to some HTML code. When
viewing the page, you want the HTML in the textbox to be rendered. This isn't possible.
> I tried this
>
> htmlentities((stripslashes($mail_text)));
>
>
> Any ideas?
>
Why can't you forget the textbox just output the HTML directly?
Edward