I've looked around and can't find what's wrong.
First, I've followed these instructions to configure the image browser- browsing and uploading seem to work fine.
Here are the instructions I followed, so no need to review:
http://docs.fckeditor.net/FCKeditor_2.x ... le_Browser
Has anyone run into this problem? I upload and insert and image - everything looks great - then after I hit save, the preview of my image turns into this:
\"\"
Or, if you look at the source code:
<img alt="\"\"" src="\"http://www.yourwebsite.com/folder/images/kitten.JPG\"" />
The url before hitting save is:
<img src="http://www.yourwebsite.com/folder/images/kitten.JPG">
But if I just type and change text it works perfectly! I'm using php and hooking up to MySQL.
Thanks!
Fri, 09/12/2008 - 08:17
#1
Re: My inserted image turns into this \"\" when I save
Re: My inserted image turns into this \"\" when I save
Re: My inserted image turns into this \"\" when I save
ex. when I upload a file, the file structure is as follows:
/upload/Image/hotel/Image/menu_headers/menu_brunch.jpg
Then when I view the source on the actual page, it changes to this:
\"/upload/Image/hotel/Image/menu_headers/menu_brunch.jpg\"
any ideas?
Re: My inserted image turns into this \"\" when I save
You can do two things:

or disable magic_quotes: in the php.ini file you will find the record magic_quotes.... = Off
or use the stripslashes( ) function after you submit your data and before store them into your database.
like this. After you press "Save" for example and the form be submited
if ( isset($_POST["save"]) ){
$text=stripslashes( $_POST["fckInstanceName"]);
}
And thats it...!!!
I recommend the second of course!!!!