this takes a little bit of hand coding to accomplish.
first, make sure that the server validations server behaivor is set to pass a querystring variable on failure:
pagename.php?valid=false
we can use the valid query string variable to tell the form whether to use the validated entries collection or the recordset collection.
you recordset binding code will look similar to this:
<?php echo $row_recordsetName['firstname']; ?>
the validated entries binding code will look similar to:
<?php echo(ValidatedField("confirm","firstname")) ?>
we can put these together using a ternary expression like this:
<?php echo((isset($_GET['valid']))?(ValidatedField("confirm","firstname")):$row_recordsetName['firstname']); ?>