in the blank templatefile, ther eis a code block to loop through the form elements, you have the link is this loop.
change:
<?php
foreach( $_POST as $pkey => $pval ){
if (!RemoveValue($pkey,$remove,$removeBegins,$removeEnds,$removeIncludes)) {
if (get_magic_quotes_gpc()) $pval = stripslashes((is_array($pval)?implode(", ",$pval):$pval));
?>
<tr valign="top">
<th style="font-size: 12px; width: 134px; text-align: right; padding: 3px 10px 3px 3px; font-weight: bold;">Verification code:</th>
<td style="font-size: 12px; padding: 3px;"><a href="http://dev.toyosupport.ca/login/user-confirm.php?id=<?php echo $_SESSION['SecurityAssist_IDemail']; ?>&randomString=<?php echo $_SESSION['rpw']; ?>&email=<?php echo((isset($_POST["Registration_group_5_Email_Address"]))?$_POST["Registration_group_5_Email_Address"]:"") ?>">Click here to verify your email address.</a></td>
</tr>
<tr valign="top">
<th style="font-size: 12px; width: 134px; text-align: right; padding: 3px 10px 3px 3px; font-weight: bold;"> </th>
<td style="font-size: 12px; padding: 3px;"> </td>
</tr>
<?php
}
}
?>
to:
<tr valign="top">
<th style="font-size: 12px; width: 134px; text-align: right; padding: 3px 10px 3px 3px; font-weight: bold;">Verification code:</th>
<td style="font-size: 12px; padding: 3px;"><a href="http://dev.toyosupport.ca/login/user-confirm.php?id=<?php echo $_SESSION['SecurityAssist_IDemail']; ?>&randomString=<?php echo $_SESSION['rpw']; ?>&email=<?php echo((isset($_POST["Registration_group_5_Email_Address"]))?$_POST["Registration_group_5_Email_Address"]:"") ?>">Click here to verify your email address.</a></td>
</tr>
<tr valign="top">
<th style="font-size: 12px; width: 134px; text-align: right; padding: 3px 10px 3px 3px; font-weight: bold;"> </th>
<td style="font-size: 12px; padding: 3px;"> </td>
</tr>
on the user-confirm page, the code to set the session comes before the code for the recordset.
the recordset code ends at line 59, the session code needs to come after that.


