Hi,
I'm trying to get rid of an error message which tells says "Error: the TEXTAREA with id or name set to 'lijst' was not found. The funny thing is that the content in the textarea is exually updated/changed when I hit the submit button. So it works okay, only the popup says not. Now I want to get rid of it but don't know how. Hope some of y'all could help.
Server looks like follows:
(root)FCKeditor
(root)cms
(root)cms/erelijst.php
I inserted FCKeditor in Erelijst.php as follows:
1) Between the head tags:
<script type="text/javascript" src="../FCKeditor/fckeditor.js"></script>
<script type="text/javascript">
window.onload = function()
{
var oFCKeditor = new FCKeditor( 'lijst' ) ;
oFCKeditor.BasePath = '../fckeditor/' ;
oFCKeditor.Width = '750' ;
oFCKeditor.Height = '450' ;
oFCKeditor.ReplaceTextarea() ;
}
</script>
2)
I couldn't find a similar post in the forum but my apologies if there's 1 for starting this thread. I hope some of y'all could help me with this.
Appreciate it a lot.
Thanks
I'm trying to get rid of an error message which tells says "Error: the TEXTAREA with id or name set to 'lijst' was not found. The funny thing is that the content in the textarea is exually updated/changed when I hit the submit button. So it works okay, only the popup says not. Now I want to get rid of it but don't know how. Hope some of y'all could help.
Server looks like follows:
(root)FCKeditor
(root)cms
(root)cms/erelijst.php
I inserted FCKeditor in Erelijst.php as follows:
1) Between the head tags:
<script type="text/javascript" src="../FCKeditor/fckeditor.js"></script>
<script type="text/javascript">
window.onload = function()
{
var oFCKeditor = new FCKeditor( 'lijst' ) ;
oFCKeditor.BasePath = '../fckeditor/' ;
oFCKeditor.Width = '750' ;
oFCKeditor.Height = '450' ;
oFCKeditor.ReplaceTextarea() ;
}
</script>
2)
<?php if(!empty($_POST)){ $id = $_GET["id"]; $lijst = $_POST["lijst"]; $sql = "UPDATE palmares SET lijst = '$lijst' WHERE id = '$id'"; $res = mysql_query($sql) or die(mysql_error()); echo"blablabla"; }else{ $sql = "SELECT * FROM palmares order by id desc limit 1"; $result = mysql_query($sql) or die(mysql_error()); while (list($id, $lijst) = mysql_fetch_row($result)){ echo"<form action=\"erelijst.php?id=$id\" method=\"post\"> <table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"> <tr> <td><textarea name=\"lijst\" id=\"lijst\">$lijst</textarea></td> </tr> <tr> <td><input value=\"wijzigen\" name=\"submit\" type=\"submit\"></form></td> </tr> </table>"; } } ?>
I couldn't find a similar post in the forum but my apologies if there's 1 for starting this thread. I hope some of y'all could help me with this.
Appreciate it a lot.
Thanks