Hughesy1986 Posted February 2, 2007 Share Posted February 2, 2007 Hi, I am making a news system with just using file functions. Now what i want to do is get the files contents and show them in a text area but not as code as how it looks on the page. Is this possible? Thanks Glen Link to comment https://forums.phpfreaks.com/topic/36824-showing-html-in-a-textarea-form/ Share on other sites More sharing options...
Orio Posted February 2, 2007 Share Posted February 2, 2007 I dont think so. But this has nothing to do with php anyways. Orio. Link to comment https://forums.phpfreaks.com/topic/36824-showing-html-in-a-textarea-form/#findComment-175680 Share on other sites More sharing options...
richardw Posted February 2, 2007 Share Posted February 2, 2007 Take a look at Tiny MCE http://tinymce.moxiecode.com/ I use it frequently in forms to show formtted text in a textarea. "TinyMCE is a platform independent web based Javascript HTML WYSIWYG editor control released as Open Source under LGPL by Moxiecode Systems AB. It has the ability to convert HTML TEXTAREA fields or other HTML elements to editor instances. " Link to comment https://forums.phpfreaks.com/topic/36824-showing-html-in-a-textarea-form/#findComment-175683 Share on other sites More sharing options...
Hughesy1986 Posted February 3, 2007 Author Share Posted February 3, 2007 Thanks alot ill check it out! Glen Link to comment https://forums.phpfreaks.com/topic/36824-showing-html-in-a-textarea-form/#findComment-176043 Share on other sites More sharing options...
marcus Posted February 3, 2007 Share Posted February 3, 2007 Well other than what richardw said you could easily do a SQL query to select data from your table and just echo it out into a textarea. $sql = "SELECT * FROM `profile` WHERE `id` ='$id'"; $res = mysql_query($sql) or die(mysql_error()); $row = mysql_fetch_assoc($res); echo "<textarea rows=30 cols=30>$row[profile_text]</textarea>\n"; just a quick simple example if you're using a database Link to comment https://forums.phpfreaks.com/topic/36824-showing-html-in-a-textarea-form/#findComment-176096 Share on other sites More sharing options...
Orio Posted February 3, 2007 Share Posted February 3, 2007 @mgalforever- That's exactly what he doesn't want... get the files contents and show them in a text area but not as code as how it looks on the page. Orio. Link to comment https://forums.phpfreaks.com/topic/36824-showing-html-in-a-textarea-form/#findComment-176097 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.