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.
-
Notifications
You must be signed in to change notification settings - Fork 2
Example project to demonstrate form validation in Flask
License
lgp171188/flask-form-validation
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Example project to demonstrate form validation in Flask
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published