This code:
<?php
$pageName = "PORC_Admin_Batch_Round1_Form.php";
if ($rsBatchRecords->getColumnVal("send_to_second_round")) $pageName = "PORC_Admin_Batch_Round2_Form.php";
if ($rsBatchRecords->getColumnVal("ebird_expedited")) $pageName = "PORC_Admin_Batch_eBird_Form.php";
?>
Is not on the page you attached. I think you attached the wrong page? It looks like the recordset name is different on this page as well.