Priority - validated vs session variable?
On my eCart4 site, the checkout page leads to the confirmation page (as usual). In my case, the fields on the checkout page look like this -
<td><input type="text" name="firstname" id="firstname" value="<?php echo(ValidatedField("confirm","firstname")) ?>" /></td>
When you then click on the CHECKOUT button on the checkout page, you are taken to the confirm.php page where session variables are loaded containing the POSTed data. If you want to make a modification to the cart's contents, and click on the MODIFY button (which returns you to the checkout page with a javascript backup in the history), the fields are blank. I'd like to populate those fields with the originally posted data. How should the modified fields look to do that? Should I give priority to the session variables or to the validated field data?
Thanks!