【发布时间】:2020-11-30 06:21:59
【问题描述】:
我正在用 HTML 和 PHP 的后端制作登录表单
这是表格
<form class=" col-md-8" action="inicio.php" method="POST" onsubmit="encrypt()">
<br>
<p><?php echo $error; ?></p>
<div class="mt-3">
<h5><label for="materialLoginFormEmail">USUARIO</label></h5>
<input type="text" id="user" name="username" class="form-control" required="true" placeholder="Introduce tu usuario">
</div>
<br>
<div>
<h5><label for="materialLoginFormPassword">CONTRASEÑA</label> </h5>
<input type="password" class="form-control" required="true" id="password" name="password" value="" placeholder="Introduce tu contraseña">
</div>
<div class="d-flex justify-content-around">
<div>
<button class="btn my-4" name ="btnLogin" type="submit" style="background-color: rgba(78,133,172); color: white;">Iniciar Sesión</button>
</div>
</div>
</form>
当我点击网络请求中的提交按钮时出现这个password is showed
我可以加密或隐藏该字段吗?
【问题讨论】:
-
请求应该通过 https。这就是你真正需要的。
-
"网络请求出现这个密码被显示" — 你真的担心输入密码的用户能够看到他们使用网络检查器输入的内容吗?
标签: javascript php html