The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
Data recap after submission [on thank you page] - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: API (https://forums.formtools.org/forumdisplay.php?fid=17)
+--- Thread: Data recap after submission [on thank you page] (/showthread.php?tid=454)



Data recap after submission [on thank you page] - vizzaroo - Jan 25th, 2010

Hi Ben and Co.

Just got to say, what a wonderful web application this is. I'm an avid fan and just want to applaud you first of all for the time and effort you put into it.

I just have a quick question. When the user submits a 'submission' and it redirects to a thank you page, I was wondering, is there a way to display the user's entered data after submission on the 'Thank you' page.

i.e a recap of what they have submitted.

Any advise or direction would be greatly appreciated.

Cheers
vizz.


RE: Data recap after submission [on thank you page] - martin_undefined - Jan 25th, 2010

(Jan 25th, 2010, 12:03 PM)vizzaroo Wrote: Hi Ben and Co.

Just got to say, what a wonderful web application this is. I'm an avid fan and just want to applaud you first of all for the time and effort you put into it.

I just have a quick question. When the user submits a 'submission' and it redirects to a thank you page, I was wondering, is there a way to display the user's entered data after submission on the 'Thank you' page.

i.e a recap of what they have submitted.

Any advise or direction would be greatly appreciated.

Cheers
vizz.

For what it's worth, I'd look at the following ideas:

If you want to display the data after submission then you need to bear in mind that the data (session?) will be cleared at the 'thank you' stage. Maybe, you could temporarily write the data somewhere, before bringing it back - post-'thank you'. I only suggest this as I am looking at a temporary way of remembering some user details.

Alternatively - maybe you could adapt the submission module so that it does this.

Final thought - the validation routine, does, I think do something similar by repopulating fields, so that might give you some clues.

Hope some of that helps.

Martin


RE: Data recap after submission [on thank you page] - Ben - Jan 30th, 2010

Hey vizzaroo,

Thanks for the kind words! I really hope it works out for your project. Smile

Yeah - Martin's quite right about the sessions being emptied on the "thankyou" page, but since that's done at the very top of the page, you can do what he suggests fairly easily. You could just grab the unique submission ID of the form prior to the ft_api_clear_form_sessions() function call, so you'd have it available later on in the page. You could then call the ft_api_show_submission() function in your page at the appropriate spot. The form ID & Export Manager ids would all be hardcoded.

I haven't actually confirmed this would work, but I don't see why not...

All the best,

- Ben