I have inserted a rich text editor to an textarea, but I get the following error after submitting my form:
Notice: Undefined index: msgpost in C:\wamp\www\mycms\administrator\page_new_parse.php on line 15
I have changed the textarea name, and the id to "msgpost" as explained on their website.
I have also changed the body class, as they suggested.
My error line looks like this:
$msgpost = ($_POST['msgpost']); //Looks ok to me?
When I try to send the data to the database, my code looks like this:
// Add the info into the database table
$query = mysqli_query($myConnection, "INSERT INTO pages (pagetitle, description, keywords, linklabel, position, heading, pagebody, lastmodified)
VALUES('$pagetitle','$description', '$keywords', '$linklabel', '$position', '$heading', '$msgpost',now())") or die (mysqli_error($myConnection));
Everything gets processed, excepts the text that is written in the textarea using "YUI 2 - Rich text editor".
It fullfills my needs, so I am curious on how to get this to work.
Any suggestions, experiences on this issue?
Klemme