designedfree4u Posted August 26, 2008 Share Posted August 26, 2008 I'm trying to make a scrollable area that contains Php. I tryed: <form name="form1" method="post" action=""><textarea name="textarea"> <?php echo "<img src='http://jaybirdfolio.com/News%20Template/TodaysNews/MainNews/mccain.gif'>"; ?> </textarea> </form> But it just gives me text with in the box. How would i create a scrollable php area? Thank You Link to comment https://forums.phpfreaks.com/topic/121350-php-into-an-html-text-area/ Share on other sites More sharing options...
redarrow Posted August 26, 2008 Share Posted August 26, 2008 <textarea> <?php echo(htmlspecialchars('<?php echo FOO; ?>')); ?> </textarea> <textarea> <?php echo(htmlspecialchars('<?php echo FOO; ?>')); ?> </textarea> Link to comment https://forums.phpfreaks.com/topic/121350-php-into-an-html-text-area/#findComment-625666 Share on other sites More sharing options...
JREAM Posted August 26, 2008 Share Posted August 26, 2008 yeah you can echo that in, you can also use JS based editors for your textarea like Tiny_MCE, FCKeditor, which will make it like a WYSIWYG editor Link to comment https://forums.phpfreaks.com/topic/121350-php-into-an-html-text-area/#findComment-625669 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.