When returing updated Data, the page errors due to quotes???
After submitting my edited page content, it is returned from the database back into the editing pane. However, because of the double quotes used in the HTML tag attributes, it is erroring. How do I prevent this?
don't know if you know but it sounds like you have a magic quotes problem? what language are you using to interact with the db? if you're using php it depends how the server's set up but the following sorted out this problem for me - spent months gettting more and more "/" characters gettting added on every submit and errors from quotes. you need to escape quotes with the "\" character:
if(!magic_quotes_gpc){
$NewText=addslashes($_POST['FCKeditor1']);//same as content
$NewHead=addslashes($_POST['headline']);
}else{
$NewText=$_POST['FCKeditor1'];//same as content
$NewHead=($_POST['headline']);
}
echo stripslashes($NewHead);
Re: When returing updated Data, the page errors due to quotes???
don't know if you know but it sounds like you have a magic quotes problem? what language are you using to interact with the db? if you're using php it depends how the server's set up but the following sorted out this problem for me - spent months gettting more and more "/" characters gettting added on every submit and errors from quotes. you need to escape quotes with the "\" character:
the stripslashes command might help also?
Good luck
Mike