If i understand what you are trying to do, just use a form like so..
<form method="POST" action="admin.php" enctype="multipart/form-data">
<?
echo '<input type="HIDDEN" name=adminidL value=';
echo $adminidL;
echo '>';
echo '<input type="HIDDEN" name=adminpwdL value=';
echo $adminpwdL;
echo '>';
?>
<button name="submit" type="submit">Success! Enter Admin</button>
</FORM>
Then if you wish to retrieve the variables on admin.php, just use
<?
$adminidL= $_POST["adminidL"];
$adminpwdL = $_POST["adminpwdL"];
?>
hope this helps!