Default content (using $content) in textarea (similar to the email sys) -pls advise
Hi there,
Just trying my luck to see whether I can get some help here.
This is a very cool site http://www.kevinroth.com/rte/demo.htm (which might be helpful to some of you) where you will be able to get functions like highlight, bold, underline, very much similar to the layout that we are using in the email system.
Well, actually I am using this sample as a reference to develop something similar to an email system. So far I can modify the codes and get what I want.
However, I encountered some problems lately.
If someone can be kind enough to take a look at the site and the Demo.txt file I have attached.
Demo.txt (focus on this portion of the script)
//We can place our predefined text in the textarea
<?
$content = "here's the ". chr(13) ."\"preloaded <b>content</b>\"";
$content = RTESafe($content);
?>//Usage: initRTE(imagesPath, includesPath, cssFile)
initRTE("images/", "", "");
</script>
<noscript><p><b>Javascript must be enabled to use this form.</b></p></noscript>
However, $variable cannot be displayed in the textarea.
Which part of the script must I change such that $variable will be shown in the textarea?
FYI, this can be done:
[COLOR=dark red]
writeRichText('standard_reply', '<p>This is an example</p><p>I need a php <?php echo $variable;?></p>', 520, 300, true, false); [/COLOR]
Bookmarks