Jump to content

Having a problem getting TinyMCE to work


VicHost

Recommended Posts

Hi folks.

 

I am very new to PHP and to MySQL etc so please forgive me for being a complete No0b.

I am in the process of creating my first PHP website. I want to be able to use TinyMCE or any compatible text editor to update pages. However, I am having issues getting the info I post in the editor to display on my page. I did post on the TinyMCE forums but they told me to post on a PHP support forum.

 

I followed the instructions to get TinyMCE installed and it displays fine. I managed also to have the content display on my index page in a section I wanted it displayed by using the following:

 

<?php
echo(stripslashes($_POST['content']));
?> 

 

When I submit the form I am taken to the index page and the data is displayed. But if I refresh the page, I get the following error:

 

Notice: Undefined index: content in C:\wamp\www\site\index.php on line 87

 

I can't for the life of me figure out why or how I am meant to do this correctly.

 

Can anyone point me in the right directions on what to do?

 

Thanks in advance.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.