What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    CK Editor sends $_POST data encoded. How to decode?

    Asked by rpjostform1 on July 03, 2017 at 02:36 AM

    Using the CK Editor in combination with my $_POST data code, I am receiving the following output from Jotform for this field:

    {"widget_metadata":{"type":"htmltext","value":"blah-blah-blah___but-this-is-just-a-string-of-characters"}}

    What is the decoding for this?

     

    Thanks.

  • Profile Image
    JotForm Support

    Answered by Charlie on July 03, 2017 at 04:03 AM

    I made a test form and I was able to replicate the concern you have.

    Here's my test form: https://form.jotformpro.com/71831590822962

    1. Here's the test submission I made: 

     

    2. Here's what the POST data looks like:

     

    Upon checking the CK Editor widget's source, it seems like this CK Editor is encoding it in base64 string. Depending on the language you are using, you should find a method built-in on that language that can decode base64 strings.

    I hope that helps. 

  • Profile Image

    Answered by rpjostform1 on July 03, 2017 at 03:21 PM

    Got it.  Thanks.  PHP = base64_decode()