Hello,
I have the following problem. I have my FCKeditor in a "hidden" div, because users do not always need to edit something thus it saves space.
When they unhide it, you can edit right away no problems, but If then submit it the value is not POSTED I can see the right name but there is no value in it.
Here comes the strange thing. this is only if the initial '$oFCKeditor->Value' is empty, if I put somthing in here like a '.' the problem does not accour and the value then put in is posted and saved. Als when I allways show the editor it also POSTES it value correct even when its Value is empty.
I did not have this problem in the previos version of witch was 2.3
now I updated it to version 2.5.1 and I have the problem.
I check my Post values with
and then I get the following result always
Array
(
[div_todo_id] => 83
[div_todo_log_id] => 4
[div_todo_log_datum] => 2008-02-23 08:32:00
[mdw_medewerkermain_id] => 7
[div_todo_log_tekst] =>
)
I have the following problem. I have my FCKeditor in a "hidden" div, because users do not always need to edit something thus it saves space.
When they unhide it, you can edit right away no problems, but If then submit it the value is not POSTED I can see the right name but there is no value in it.
Here comes the strange thing. this is only if the initial '$oFCKeditor->Value' is empty, if I put somthing in here like a '.' the problem does not accour and the value then put in is posted and saved. Als when I allways show the editor it also POSTES it value correct even when its Value is empty.
I did not have this problem in the previos version of witch was 2.3
now I updated it to version 2.5.1 and I have the problem.
function showcodes (a, codediv)
{
var divje = document.getElementById( codediv );
if (divje.style.display == "block")
{
divje.style.display = "none";
a.innerHTML='<img src="img/open.png">';
}
else
{
divje.style.display = "block";
a.innerHTML='<img src="img/close.png">';
}
}<form action="<?php echo $_SERVER['PHP_SELF']."?pagmain=".$_GET['pagmain']."&page=wijzig&wat=ToDolog"; ?>" method="post">
<input type="hidden" name="div_todo_id" value="<?php echo $weergave['div_todo_id'];?>">
<input type="hidden" name="div_todo_log_id" value="<?php echo $weergavelog['div_todo_log_id'];?>">
<input type="hidden" name="div_todo_log_datum" value="<?php echo $weergavelog['div_todo_log_datum'];?>">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="opties-title">
<tr>
<th height="20" colspan="2">Log:<th>
<th style="padding-right: 8px; text-align: right;"><span style="cursor: pointer;" onClick="showcodes(this, 'div_loginvoeren');"><img src="./img/close.png"></span></th>
</tr>
</table>
<div id="div_loginvoeren" style="display : none;">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="opties"><tr>
<td valign="top" style="padding-top: 4px; padding-bottom: 5px;" colspan="2" bgcolor="efefe3"><strong>Omschrijving</strong></td>
</tr>
<tr>
<td colspan="2" bgcolor="efefe3" style="padding-right: 8px;">
<?php $oFCKeditor = new FCKeditor('div_todo_log_tekst') ;
$oFCKeditor->BasePath = './FCKeditor/';
$oFCKeditor->ToolbarSet = 'Basisopmaak' ;
$oFCKeditor->Value = $weergavelog['div_todo_log_tekst'];
$oFCKeditor->Width = '100%' ;
$oFCKeditor->Height = '150' ;
$oFCKeditor->Create() ;?></td>
</tr>
<tr>
<td bgcolor="efefe3"></td>
<td bgcolor="efefe3" style="padding-top: 8px; padding-bottom: 15px; padding-right: 8px; text-align: right;" ><input type="reset" alt="Reset" value="" class="resetknop"> <input type="submit" alt="submit" value="" class="submitknop"></form></td>
</tr>
</table> I check my Post values with
echo "<pre>".print_r($_POST, true)."</pre>";
and then I get the following result always
Array
(
[div_todo_id] => 83
[div_todo_log_id] => 4
[div_todo_log_datum] => 2008-02-23 08:32:00
[mdw_medewerkermain_id] => 7
[div_todo_log_tekst] =>
)

Re: POST value missing with FCKeditor