Gunnar Bittersmann: input type password und chrome

Beitrag lesen

@@Der Martin

Und da man normalerweise möglichst jedes Zeichen in einem Passwort zulassen möchte

Da ist ein „möglichst“ zu viel.

echo '<input type="password" name="pw" value="', htmlspecialchars($aus_der_datenbank), '">';

Und wenn man’s richtig™ macht sowieso, weil man sich schon Anführungszeichen spart:

<input type="password" name="pw" value="<?php echo htmlspecialchars($aus_der_datenbank); ?>">

oder kurz

<input type="password" name="pw" value="<?= htmlspecialchars($aus_der_datenbank) ?>">

LLAP 🖖

PS: Für kaputte Syntaxhighlighter kann ich nichts.

--
“You might believe there are benefits for the developer, but first of all, you should put those behind the interest of the user.” —Stefan Tilkov
Selfcode: sh:) fo:} ch:? rl:) br:> n4:& va:| de:> zu:} fl:{ ss:| ls:# js:|