Thanks but can anyone help out here please? Have set up 3 test templates each with their own session [[snippet]] at the very top. The first two form pages collect some values and the third provides a summary. I’ve used the exact code ganehsXL suggested for the snippets. First two pages appear to work, but with the 3rd page I get the error below with no values passed to its form fields.
Parse error: syntax error, unexpected T_VARIABLE in /home/xxxx/public_html/modx/manager/includes/document.parser.class.inc.php(769) : eval()’d code on line 2
[[snippet]] at top of p1 & 2:
<?php
$_SESSION['formval1'] = trim($_POST['formval1']);
$_SESSION['formval2'] = trim($_POST['formval2']);
etc
etc
?>
[[snippet]] at to of page 3:
<?php
$modx->setPlaceholder('formval1' $_SESSION['formval1']);
$modx->setPlaceholder('formval2' $_SESSION['formval2']);
$modx->setPlaceholder('formval3' $_SESSION['formval3']);
$modx->setPlaceholder('formval4' $_SESSION['formval4']);
etc
etc
?>