How can I display the name the user entered back into the form if the user forgot to enter a password? i.e. echo $submitted_user into value="" under Username.
if(empty($_POST['password'])) {
$submitted_user = htmlentities($_POST['username']);
echo '<form action="register.php" method="post">
Username:<br />
<input type="text" name="username" value="" autofocus="autofocus" />
<br /><br />
Password:<br />
<input type="password" name="password" value="" />
<br /><br />
<input type="submit" value="Register" />
</form>';
exit();
}