开发者

don't want to display password in address bar in html

开发者 https://www.devze.com 2023-03-15 15:17 出处:网络
Username: Password: /users/home is html file displayed on submit button when I enter username and password as \"anuj\" and \"rohan\"

Username:

Password:

/users/home is html file displayed on submit button

when I enter username and password as "anuj" and "rohan" they are displayed on the next page in the address bar as http://localhost:3000/users/home?username=anuj&pwd=rohan

I don't want to display these things as these are protected. Is开发者_运维问答 there any way to encrypt or hide passwords in html.


When you use the form tag, make sure it's method attribute is set to POST like so:

<form action="index.php" method=POST>
0

精彩评论

暂无评论...
验证码 换一张
取 消