textarea in a form with May-to-Many escapes quotes?
Posted: 2012-09-06 09:31
Hi all,
I have a strange problem.
I have a form that updates records in a db. Nothing strange here.
This form contains some texarea fields.
Some fields are standard textareas, while others are textareas created by the Many-To-Many (M-T-M) addt server behaviour.
When I input some text with quotes and other symbols in standard textareas there is no problem: the text is showed corretly on web pages.
But when I input some text and special characters (quotes, for example) in textareas created by the M-T-M addt server behaviour the text gets changed and all quotes are rendered with backslashes.
Example:
entering some 'text' with quotes I get this some \'text\' with quotes.
Updating the same record and saving it without changing anything will display this: some \\'text\\' with quotes.
Any idea on how to fix this?
Addendum: it seems that this problem is related to the 'magic_quote" settings in the server php.ini.
So, is there a way to disable it locally (only on a specific folder and subfolder) leaving intact this settings for other folders?
I think the best solution is to fix the different M-T-M server behaviour, bt I'm not such a good programmer and I would screw things up....
TIA
tony
I have a strange problem.
I have a form that updates records in a db. Nothing strange here.
This form contains some texarea fields.
Some fields are standard textareas, while others are textareas created by the Many-To-Many (M-T-M) addt server behaviour.
When I input some text with quotes and other symbols in standard textareas there is no problem: the text is showed corretly on web pages.
But when I input some text and special characters (quotes, for example) in textareas created by the M-T-M addt server behaviour the text gets changed and all quotes are rendered with backslashes.
Example:
entering some 'text' with quotes I get this some \'text\' with quotes.
Updating the same record and saving it without changing anything will display this: some \\'text\\' with quotes.
Any idea on how to fix this?
Addendum: it seems that this problem is related to the 'magic_quote" settings in the server php.ini.
So, is there a way to disable it locally (only on a specific folder and subfolder) leaving intact this settings for other folders?
I think the best solution is to fix the different M-T-M server behaviour, bt I'm not such a good programmer and I would screw things up....
TIA
tony