erme Posted July 6, 2010 Share Posted July 6, 2010 I have built a site for someone, however they have requested that they can edit one line of text on the homepage. It's just a paragraph. Is there anything simple that I can do with php. I'm posibly looking to use TinyMCE to replace a textfield with an editor, but how can I actually edit the text itself on submit. Many thanks. Quote Link to comment https://forums.phpfreaks.com/topic/206865-php-text-editor/ Share on other sites More sharing options...
trq Posted July 6, 2010 Share Posted July 6, 2010 Generally content (text) is stored within a database and dynamically added to web pages from there. Quote Link to comment https://forums.phpfreaks.com/topic/206865-php-text-editor/#findComment-1081810 Share on other sites More sharing options...
erme Posted July 6, 2010 Author Share Posted July 6, 2010 No database here. No need for it. Its just a simple static website where one line of text needs to be editable. thanks Quote Link to comment https://forums.phpfreaks.com/topic/206865-php-text-editor/#findComment-1081811 Share on other sites More sharing options...
trq Posted July 6, 2010 Share Posted July 6, 2010 Store it in a text file then. Quote Link to comment https://forums.phpfreaks.com/topic/206865-php-text-editor/#findComment-1081812 Share on other sites More sharing options...
erme Posted July 6, 2010 Author Share Posted July 6, 2010 Any examples of this? Never had to do anything like this before! Quote Link to comment https://forums.phpfreaks.com/topic/206865-php-text-editor/#findComment-1081814 Share on other sites More sharing options...
trq Posted July 6, 2010 Share Posted July 6, 2010 Take a look at file_put_contents & file_get_contents. Quote Link to comment https://forums.phpfreaks.com/topic/206865-php-text-editor/#findComment-1081818 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.