I have a php page that I would like to get the htmlarea editor onto.
I'm a newbie at htmlarea, and cgi both.
I don't know if this problem has to do with the cgi or not, but I can't get this simple php to work inside the htmlarea editor. Here is the code I'm working with. I took the core.html file in htmlarea examples and changed the extension to php. I'm showing the code from the middle of data retrieval from a mysql database to the part of examples/core.php that displays the text at about line 143 of core.html
$description = $row['description'];
echo 'description = ', $description;
}
?>
<h1>HTMLArea 3.0</h1>
<p>A replacement for <code>TEXTAREA</code> elements. © <a
href="http://interactivetools.com">InteractiveTools.com</a>, 2003-2004.</p>
<form action="test.cgi" method="post" id="edit" name="edit">
<textarea id="ta" name="ta" style="width:100%" rows="20" cols="80">
<?php echo 'description = ', $description; ?><BR>
The first 'echo 'description = ', $description;' works perfectly and displays the text it got from the db. The second echo 'description = ', $description; at the end of the code above won't work. The original text that's part of the example is displaying fine. Apparently it sends to the cgi before displaying it, am I correct? Is there any way to get text from the db to be entered into the editor?