Focus password input field

Automatically focus the password input text field when the page loads using the HTML `autofocus` attribute.
This commit is contained in:
JonnyTech
2019-02-28 14:36:45 +00:00
committed by GitHub
parent ffa13be2a8
commit 2f7d4f1f84

View File

@@ -31,7 +31,7 @@ if($PASSWORD) {
$_SESSION['_sfm_allowed'] = true;
header('Location: ?');
}
echo '<html><body><form action=? method=post>PASSWORD:<input type=password name=p /></form></body></html>';
echo '<html><body><form action=? method=post>PASSWORD:<input type=password name=p autofocus/></form></body></html>';
exit;
}
}