This is a PHP project that collects user trip details through a form and stores them in a MySQL database using phpMyAdmin.
index.php– Main file for form and PHP MySQL codestyle.css– Styling for the formindex.js– Optional JavaScript filevaction.jpg– Background imagetrip.csv– (Optional) backup storage fileREADME.md– Project instructions
- User form with fields like name, email, gender, etc.
- Form data saved to MySQL database (phpMyAdmin)
- Data can also be saved in CSV (optional)
- CSS styling for layout and design
- Open phpMyAdmin at
http://localhost/phpmyadmin - Create a database named:
lpu trip - Create a table named
tripwith columns:sno(INT, AUTO_INCREMENT, PRIMARY KEY)name(VARCHAR)gender(VARCHAR)email(VARCHAR)phone(VARCHAR)desc(TEXT)dt(TIMESTAMP DEFAULT CURRENT_TIMESTAMP)
- Place the folder inside
C:\xampp\htdocs\ - Start Apache and MySQL in XAMPP
- Open browser and go to:
http://localhost/PHP_Trip_Form/index.php - Fill the form and submit
Mani Vardhan