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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.