Ok here’s what I’ve done.
I’ve changed the bottom or eForm2db to end like this
$dbTable['IP'] = $_SERVER['REMOTE_ADDR'];
$dbTable['Host'] = $_SERVER['REMOTE_HOST'];
$dbTable['Agent'] = $_SERVER['HTTP_USER_AGENT'];
// Run the db insert query
$dbQuery = $modx->db->insert($dbTable, 'aafeedback' );
return true;
}
$_SESSION['info']=$dbTable;
?>
Note the last line before the php close has been added.
I’ve then added the &gotoid=`42` to the feedback form so on submit, the page goes to page ID 42
I’ve created a snippet called form with the following code
<?php
$modx->setPlaceholder('Title', $_SESSION['info']['Title']);
$modx->setPlaceholder('Name', $_SESSION['info']['Name']);
// etc. for each value you want to display on this page
?>
I’ve then altered the code in page Id 42 so it contains this (to call the snippet)
<h2>The form's been submitted</h2>
[[form]]
<p>Dear [+Name+],</p>
<p><b>We've sent a confirmation e-mail to you ............
but I still don’t get the variables passed. i must be missing something here....
Edit: I’ve changed [[form]] to [!form!] in the page id of 42 but still no difference.