Search code examples
pythonhtmlformspasswordscherrypy

cherrypy password form


I am trying to make a user registration and login for an application I'm working on using the form below.

<html><form method="get"  action="login">
Email Address: <input name="email" type="text"><br/>
Password: <input name="password" type="password"><br/>
<input type="submit" value="Submit" />
</form>
</html>

However the user name and password show up in the url, as does the submit button.

http://localhost:8080/login?email=123&password=123&submit=Submit

How do I stop this happening?


Solution

  • They show up in the URL because your form is using the GET method, you should be using POST and processing the values on the server side.