Thank you for you replies, that does help. But my biggest problem is with smarty.
How do I move a value out of smarty and back to my code?
example:
---main.php---------------
<?php
CORE CODE: Result variables
$smarty->display('result.tpl');
?>
---result.tpl----------------
{php}
"dumping variables in user friendly format"
$newVariable = array("additional","questions");
{/php}
I need the $newVariable to be passed back to main.php so it can be saved (serialized) into the database. I tried to pass it in a session with no luck.
Each result.tpl page has multiple ways out (NEXT, 1|2|3|4, RETURN, etc) and I'd like the data to be saved whatever button is pressed.