Contact form with mail function and Storing data in the database – Mini Project

Contact form with mail function and Storing in the database project has two module :

  1. User Module
  2. admin Module

User Module

Sql table structure for tblcontactdata table where we will store our data

Now create a HTML for user inputs.

MYSql database connection

Insert Data into Database

Admin Module

Admin Panel Features 

  • Secure login with password hashing
  • Admin Dashboard
  • Manage Contact’s
  • Report’s
  • Update Remark on particular contact
  • Notification feature(Admin can get notification on every contact)
  • Admin Can update email id where he/she want to receive email .
  • Change Password.
  • Logout.
In this project admin and user will a get copy of contact form  on email. Email function will not work on localhost .

How to run Contactform Mini Project

1. Download the the zip file
2. Extract the file and copy contactform folder
3.Paste inside root directory(for xampp xamp/htdocs, for wamp wampp/www,for lamp var/www/html)
4. Open phpmyadmin (http://localhost/phpmyadmin)
5. Create a database with name contactdb
6. Import newsportal.sql file(given inside the zip package in sql file folder)
7.Run the script http://localhost/contactform (frontend)
8. For admin panel http://localhost/contactform/admin
Credential for admin panel :
username  : admin
Password : Test @123
Project Demo————
View user Demo View AdminDemo

Anuj Kumar

I'm Anuj kumar a web developer with 4+ year experience .I write blogs in my free time. I love to learn new technologies and share with others. I founded PHPGurukul in September 2015. The main aim of this website to is provide php , jquery , mysql , phpoops and other web development tutorials. I am trying best effort to make PHPGurukul useful for every single moment spend on this website. If you think this website is useful to visit please share with your friend and buddies.

Recommended Tutorials for you

You may also like...