Why does password and username show up in the url bar when submitted? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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>

16th Aug 2018, 12:40 AM
Nicky04
1 Answer
+ 5
Surround your code as below and use POST method instead of GET: <form method='POST' action='..'> // form code here </form>
16th Aug 2018, 1:47 AM
Benneth Yankey
Benneth Yankey - avatar