</head> <body id="mainBody" class="shadowBody"> <?php displayBanner(); ?> <form id="userInfo" method="post" action="/dataAccess/updateUser.php"> <?php $conn = new dbAccess($debug); // get the information from database to populate the form $orgCode = ""; $userId = !empty($_GET['i']) ? $_GET['i'] : $_SESSION['user_id']; if (!filter_var($userId, FILTER_VALIDATE_INT, array("options" => array("min_range" => 0, "max_range" => 20000)))) { $userId = $_SESSION['user_id']; } //if (($rc = $conn->getResidenceInfo($_SESSION['user_id'], &$orgCode)) !== GOOD_RC) { if (($rc = $conn->getResidenceInfo($userId, &$orgCode)) !== GOOD_RC) { echo "Error occurred retrieving User Info<br />"; } if (($rc = $conn->getLeaderInfo($_SESSION['user_id'], $orgCode)) !== GOOD_RC) { echo "Error occurred retrieving Leader Info<br />"; } ?> <input class="press" title="Print this Page" type="button" value="Print" onclick="window.print();"></input> </form> <?php displayFooter(); ?> </body> </html>