/    Sign up×
Community /Pin to ProfileBookmark

three bullets for each character in password

alright, anybody who has used a linux build machine has also probably used the thing where for every character you type in your password, it types out three/two characters.
My question is simply, is it possible to do this with php? To have your password form output three/four/etc… bullets for each character typed?

If so, how?

Thanks in advance.
-Zlord

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@JonaFeb 26.2005 — [code=php]
$password = $db->query("SELECT pass FROM users WHERE username = '$username'");

echo "Your password is: <b>";
for ($i=0; $i<strlen($password); $i++){
echo "***";
}
echo "</b>.";
[/code]
Copy linkTweet thisAlerts:
@phpnoviceFeb 26.2005 — [i]Originally posted by Zlord [/i]

[B]My question is simply, is it possible to do this with php? To have your password form output three/four/etc... bullets for each character typed?[/B][/QUOTE]

If you mean "[i][u]as you type[/u][/i]," then you're not talking about PHP -- since such operations can only occur on the client side and PHP is only server side. For the client side, you can only accomplish this via client-side scripting (e.g., JavaScript).
×

Success!

Help @Zlord spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.27,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...