RE: read only texbox to html with php

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

 



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

-- 
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