A simple GUI registration form built with Python Tkinter that stores user data in a MySQL database.
- Collects first/middle/last name, email, phone, gender, and course
- Phone number validation (10 digits)
- Submit, Clear, and Exit controls
- MySQL database persistence
pip install mysql-connector-python
# Create database
mysql -u root -e "CREATE DATABASE user_data;"
mysql -u root user_data < schema.sql
python registration_form.pyCREATE TABLE users (
id INT AUTO_INCREMENT PRIMARY KEY,
first_name VARCHAR(50),
middle_name VARCHAR(50),
last_name VARCHAR(50),
email VARCHAR(100),
phone VARCHAR(10),
gender VARCHAR(10),
selected_course VARCHAR(50)
);Python 3, Tkinter, mysql-connector-python, MySQL