Wanted to pick some brains here as I am in a bit of a problem.
Form submit data using db_persist to form.php template.
During this process, I set two sessions
I redirect to the thank you page
Thank you page shows a receipt, I thought to use the email and invoice # as sessions to pull the data on the thank you page. I thought it would work, but it doesn't. At least... The first time.
The page redirects and nothing is there. I hit refresh and data is there. I am thinking it is redirecting to quick before the data is processed and saved by couch? If so is there a way to stall the redirect a second or two? I am using:
To go back to the thank you page.
Is there another way to handle this? Handling thank you pages where we can pull data saved for that user and display it all within couch?
Thanks!
Form submit data using db_persist to form.php template.
During this process, I set two sessions
I redirect to the thank you page
Thank you page shows a receipt, I thought to use the email and invoice # as sessions to pull the data on the thank you page. I thought it would work, but it doesn't. At least... The first time.

- Code: Select all
<cms:pages masterpage="form.php" custom_field="email==<?php echo $_SESSION['email']; ?> | invoice==<?php echo $_SESSION[last-invoice']; ?>" limit="1" >
The page redirects and nothing is there. I hit refresh and data is there. I am thinking it is redirecting to quick before the data is processed and saved by couch? If so is there a way to stall the redirect a second or two? I am using:
- Code: Select all
<cms:redirect url="<cms:link masterpage='donate.php' page='thank-you' />" />
To go back to the thank you page.
Is there another way to handle this? Handling thank you pages where we can pull data saved for that user and display it all within couch?
Thanks!