<?php if (!isSSL()): ?>
-<form method=post>
+<form method=post action="<?=$URI?>">
<h3>Please enter your MySQL login information:</h3>
<p>username: <input type="text" name="u" value="<?=isset($i_u)?$i_u:''?>"></p>
<p>password: <input type="password" name="p"></p>
<?php elseif (isSSL() && !empty($SSLCred)): ?>
-<form method=post>
+<form method=post action="<?=$URI?>">
<h3>You are identified as: <?=$SSLUsername?></h3>
<p><?=$SSLName?></p>
<p><?=$SSLEmail?></p>