开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜