Moonsoft Software Solutions

Apex in textarea

Started 21 Dec 2012 · 2 replies

  1. moon_846
    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?
  2. Moonsoft support
    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
  3. moon_846
    Thank you, it works! ;)

    Edited by moon_846 - 28.12.2012 13:28

Still stuck?

Customers with an active license can open a support ticket.

Log in to open a ticket