Forum
Calc Builder Support
Calc Builder supportForums
No se permite escribir sin estar logado. Por favor, login
Apex in textarea 21.12.2012 13:33
Hi there and sorry to bother.
I'm working with CB and I find it very useful. My problem is that I'm italian and, in our language, the apex is very much used.
I have a textarea for my customers, and if they write in it a string without apex, there's no problem. Otherwise, they get a 500 html error.
I tried
str_replace("'", "-", $note);
but it doesn't work.
But, if I try
str_replace("a", "-", $note);
it works...
Any advice?
I'm working with CB and I find it very useful. My problem is that I'm italian and, in our language, the apex is very much used.
I have a textarea for my customers, and if they write in it a string without apex, there's no problem. Otherwise, they get a 500 html error.
I tried
str_replace("'", "-", $note);
but it doesn't work.
But, if I try
str_replace("a", "-", $note);
it works...
Any advice?
Re: Apex in textarea 23.12.2012 19:08
Hello,
it seems the input value is not properly escaped when recovering the value, so that error is thrown even before reaching your code. Please download again the module (you don't need to reinstall the component, so you won't loose your data), and try again your calculator. When starting your code, the value should be returned containing the ' , as it was filled by user, so you can start replacing if you need to.
Regards
Moonsoft Team
www.moonsoft.es
it seems the input value is not properly escaped when recovering the value, so that error is thrown even before reaching your code. Please download again the module (you don't need to reinstall the component, so you won't loose your data), and try again your calculator. When starting your code, the value should be returned containing the ' , as it was filled by user, so you can start replacing if you need to.
Regards
Moonsoft Team
www.moonsoft.es