1
I recently noticed a problem when editing one of my articles.
If I save something to the database such as:
That 70's show
The item is saved properly...
However when I try to edit the article, whatever was after the ' (tickmark) will not show. I.e That 70
I assume it has something to do with this XOOPS form element code:
Quote:
$sform -> addElement( new XoopsFormText( 'Favorite TV Show:', 'favoritetvshow', 50, 80, $favoritetvshow) );
I tried this:
Quote:
$sform -> addElement( new XoopsFormText( 'Favorite TV Show:', 'favoritetvshow', 50, 80, addSlashes($favoritetvshow)) );
But it only gave me:
That 70\
How can I get the addSlashes PHP code in the retrival of this entry? It is used in the saving process.
I am using the News module but have added my own custom field.
Thanks!
~Thomas