sanleless Posted August 22, 2007 Share Posted August 22, 2007 I am setting up a PHP guestbook. I have also set up a script to use smilies. It uses a text file to store messages. In the stored message the smilies are saved as code, IE - <img src="image/smile/tongue.gif"> When I edit a message with smilies in it, the text part comes up in the edit box but not the smiley code so that you have to reinsert smilies into a message. Any idea how to remedy this? ThanksĀ Quote Link to comment https://forums.phpfreaks.com/topic/66218-php-guestbook-smileyedit-question/ Share on other sites More sharing options...
wildteen88 Posted August 22, 2007 Share Posted August 22, 2007 looks like you are replacing the smilie code ( eg: :P) when you save the submitted text into the text file, or however you store it. What you should do is process the smilie code when you go to display the data stored on your page instead. That way when you go to edit the text later on it'll still be in its rawest form (no fomatting, basic text). Quote Link to comment https://forums.phpfreaks.com/topic/66218-php-guestbook-smileyedit-question/#findComment-331251 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.