- yonatronAsked on May 19, 2017 at 09:50 AM
Hi - did you recently change the format of the POST body?
This used to work differently (Fall of 2016), and now it looks like everything's coming in just like query parameters (inside the POST body!).
For example I got this as a POST body:
Is this what you intended or did I do something wrong?
I can work with this, but will have to URL decode, change my parsing etc.
If so, that's fine, but can you assure me that you are (hopefully) going to keep the format this way? (Please!)
Jade GreenPage URL:
- JotForm SupportNik_CAnswered on May 19, 2017 at 11:47 AM
Not sure if format changed, we didn't have such reports recently. I tested the show post data option and this is the response I got and format of the post data:
Could you please show us response from your form, here is the URL that you should place in your Thank you page: https://www.jotform.com/show-post-data/
We will wait for your response.
- yonatronAnswered on May 19, 2017 at 12:49 PM
Do you have any option to POST as JSON?
Here's what came in from your show-post-data page.
However this is NOT the raw POST body it has already been parsed and processed.
The raw POST data is as I showed above.
Data Submitted:Array ( [submission_id] => 3710214797598100061 [formID] => 62568855409166 [ip] => 126.96.36.199 [chooseusername] => texas [name] => Array (  => tex  => texan ) [address] => Array (  => 19 sailor lane  =>  => cheyenne  => WY  =>  => United States ) [email] => email@example.com )
- JotForm Supportashwin_dAnswered on May 19, 2017 at 02:15 PM
Form's POST data is not as JSON object. The output you see by using the sample URL "show-post-data" seems to be parsed but you are anyway not gong to use this in your live form. You will have to write your own PHP server side code to read the POST data.
Hope this helps.
Do get back to us if you have any questions.