Skip to content

lgp171188/flask-form-validation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Form validation in Flask

This project demonstrates form validation using Flask web framework. On loading the page with URL / a form is displayed to the user. The form contains the fields for 'Name', 'Email', 'Gender', 'Username', 'password'. When the user enters the data and submits the data via POST method, it is submitted to the same URL and the server-side code handling the POST request for the URL, extracts the form data from the request and validates each field for valid data and raises appropriate error messages if the data is invalid. If the data entered is valid, the view renders a success template that displays the data entered by the user. Regular expression is used to validate the email address entered.

About

Example project to demonstrate form validation in Flask

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages