+ 1
Why does password and username show up in the url bar when submitted?
I'm having trouble trying to make a form that doesn't show the username and password in the url. I am using the "<form action="url" method="GET">" command, but it still shows. Any advice? My Code: <p> Username </p> <input type="text" name="Username"><br/> <p> Password </p> <input type="password" name="Password"><br/> <input type="submit"><br/> </form> <form action="Catshare1.html" method="GET"> </form>
1 ответ
+ 5
Surround your code as below and use POST method instead of GET:
<form method='POST' action='..'>
// form code here
</form>