Forum Moderators: coopster
Before I enter the record into the database I am using addslashes on each variable as I have magic_quotes_gpc disabled.
The second part of the CMS allows the user to view and edit any news article. Querying the db returns the values without a problem, but when I echo the value for TITLE into the HTML <input type=text> field the contents are truncated at any " (double quote), but is fine for any ' (single quote). I have echoed the value of TITLE to the <textarea> and the problem does not occur.
Can anyone explain? I have tried using stripslashes on the return values, with no effect. In fact it doesn't seem to need this at all.
Help!
Thanks.
Tom