dtv8189 2014-11-04 16:29
浏览 185

如何隐藏html格式的密码字符?

I want to echo $password to input field of form, because the form is be able to post the password to do something later. I don't want display any password character in html source code. How to do that? Thanks a lot!

<?php

 //Don't display password character in html source code... How?
 echo '<input type="password" name="pwd" value="'.$password.'">';

?>
  • 写回答

1条回答 默认 最新

  • duanhuihui2705 2016-07-14 15:09
    关注

    use this to hide your password

    <input type="password" class="form-control" placeholder="Enter your Password" name="password"/>
    
    评论

报告相同问题?

悬赏问题

  • ¥15 stata安慰剂检验作图但是真实值不出现在图上
  • ¥15 c程序不知道为什么得不到结果
  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题