I have a form. It submits. It saves.
I'd like to pass the newly-created, complete form object back to the 'thank you' page template so that I can display the values that were submitted.
I do not want to pass the ID or any identifiable information in the URL. Ideally, I'd like behavior just like using setRouteVariables
craft()->urlManager->setRouteVariables(array(
'form' => $form
));
However, setRouteVariables
does not work when using $this->redirect()
or $this->redirectToPostedUrl()
.
I can successfully pass query string parameters back using the redirect
method in the following way:
$this->redirect(array($redirectUrl,'dog'=>'cat'), true);
Is there any way to do this with posted variables that are not visible to the user?