希望使用者輸入至多 15 個字元,可是 html 語法卻寫成:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input name="userpass1" type="password" size="15" class="f1"> |
正確寫法是:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input name="userpass1" type="password" size="15" maxlength="15" class="f1"> |
另外,登入頁面
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input type="password" onkeypress="return noenter(event)" style="width: 150px; height: 16px" title="密碼" value="" size="24" name="userpass"> |
修改密碼規定 15 個字元,這裡卻限制 24 個字元,明顯裡外不一。
沒有留言:
張貼留言