$submission->get_posted_data('Value');
-
Hello,
I have a weird problem with my get_posted_date values.
I’m using cf7 to send a mail with a custom document in 2 steps :
Step 1 : User chose some settings in a html form and is redirected to step 2
Step 2 : User fill the cf7 form and click on send mail. The form also contain an hidden value called TheTime (from step 1).Before sending the mail, I use this script :
$submission = WPCF7_Submission::get_instance(); if ( $submission ){ $TheTime = $submission->get_posted_data('TheTime'); } create_final_pdf($TheTime);Problem explanation :
User-A complete step1
User-B complete step1
User-A complete step2 (fill the cf7 form and send it).-> My script catch the value ”
- TheTime
” from user-B
Is it normal? It seems like this value is stored somewhere in database and rewrited at every page loaded.
The topic ‘$submission->get_posted_data('Value');’ is closed to new replies.