Re: [PHP] read only texbox to html with php
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 href="http://www.myurl.org";>http://www.myurl.org 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
RE: [PHP] read only texbox to html with php
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 href="http://www.myurl.org";>http://www.myurl.org 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
Re: [PHP] read only texbox to html with php
Please elaborate the question -- Shafiq Rehman (ZCE) http://phpgurru.com | http://shafiq.pk On 3/21/07, Ross <[EMAIL PROTECTED]> 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 http://www.myurl.org";>http://www.myurl.org 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
Re: [PHP] read only texbox to html with php
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. what do you mean by converting to html? if it is just plain text what do you want to do with it? enclose it within tags, etc? or what? and what do you mean by doesn't work? greets Zoltán Németh > > "available on the web site href="http://www.myurl.org";>http://www.myurl.org 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
[PHP] read only texbox to html with php
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 http://www.myurl.org";>http://www.myurl.org 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