I'm using a third party service that allows you to enter custom html to collect information using a form. There is a the form page, where the user enters information, and the post form page. I asked the service if there is any way that I could spit out information collected from the form page and post it onto the post form page. For example, if the user entered first name John and last name Smith, I want the post form page to say:
Thanks for submitting the form, John Smith.
The service said that it's possible because on the post form page there is a javascript var called fields.
I looked at the javascript they were talked about and found this:
<script>
var fields = {"age":"on","city":"San Diego","email":"[email protected]","firstname":"John","lastname":"Smith","officialrules":"on","state":"CA"};
.....
Does anyone know how I can post this information so that it would spit:
<p>Thanks for Thanks for submitting the form, [firstname] [lastname].</p>
Resulting in:
Thanks for submitting the form, John Smith.