you dont need the recordset on the template page, you are already using the recordset on the confirm page to send the email.
On the template, you have already defined the globals:
<?php
global $RecipArray;
global $RecipIndex;
?>
So to output a value from the recordset, you would use:
<?php echo($RecipArray[$RecipIndex][0]["emailAddress"]); ?>