I m trying to autofocus on field when user submit empty or wrong data means compare to regex i have defined in code my php code is here
if (empty($_POST["password"])) {
$passwordErr = "Name is required";
$_POST["password"].focus();
} else {
$password = test_input($_POST["password"]);
}
plz guide me to solve this issue thanks
</div>