I have a PHP script which has a form that has an array of selects ($hoa_service_category[]) and Fckeditors ($hoa_service_desc[]). For each editor there is a select box from which the user selects a category.
I am having trouble with the description field that's implemented as an editor. It's coming back blank when the form is submitted. Do I need to do something "special" when the editor field is an array?
Here is my PHP code:
<?php
echo "<table border=\"0\" cellpadding=\"5\">\n";
for ($i=0; $i<= 9; $i++)
{
$this_service_category=$hoa_service_category[$i];
$this_service_desc=$hoa_service_desc[$i];
echo "<tr>\n";
echo "<td>Category:</td>\n";
echo "<td>".SelectServiceCategory($this_service_category, "hoa_service_category[]")."</td>\n";
echo "</tr>\n";
echo "<td>Description:</td>\n";
echo "<td>";
$oFCKeditor=new FCKeditor('hoa_service_desc[]'); // <---- An array of editors called hoa_service_desc[]
$oFCKeditor->ToolbarSet='Content';
$oFCKeditor->BasePath='/_editor/';
$oFCKeditor->Value=$this_service_desc;
$oFCKeditor->Create() ;
echo "</td>";
echo "<tr>\n";
echo "</tr>\n";
}
echo "</table>\n";
?>
TIA!
I am having trouble with the description field that's implemented as an editor. It's coming back blank when the form is submitted. Do I need to do something "special" when the editor field is an array?
Here is my PHP code:
<?php
echo "<table border=\"0\" cellpadding=\"5\">\n";
for ($i=0; $i<= 9; $i++)
{
$this_service_category=$hoa_service_category[$i];
$this_service_desc=$hoa_service_desc[$i];
echo "<tr>\n";
echo "<td>Category:</td>\n";
echo "<td>".SelectServiceCategory($this_service_category, "hoa_service_category[]")."</td>\n";
echo "</tr>\n";
echo "<td>Description:</td>\n";
echo "<td>";
$oFCKeditor=new FCKeditor('hoa_service_desc[]'); // <---- An array of editors called hoa_service_desc[]
$oFCKeditor->ToolbarSet='Content';
$oFCKeditor->BasePath='/_editor/';
$oFCKeditor->Value=$this_service_desc;
$oFCKeditor->Create() ;
echo "</td>";
echo "<tr>\n";
echo "</tr>\n";
}
echo "</table>\n";
?>
TIA!