Simple Registration System in PHP Free Source Code

Language

This is a simple Registration System in PHP Language. The system has two login sections which are the admin login section and the user login section. The admin can manage users by deleting and registering new users, the whole system consists of restricted pages but these pages can be accessed after logging in as an admin or other user but still, other accounts are restricted to some pages. This simple application has also a mailing feature when recovering the forgotten user password. The system will first the email of the user and if the email exists on the database the system will send the user an email containing his/her password.

This application was originally written in an old version of PHP and recently updated to run properly to the latest later versions of PHP. The Simple Registration was developed using PHP, MySQL Database, HTML, and CSS. I created this simple web application to help other programmers for those new to PHP Language to learn/understand how to create a registration feature in a web app using the said language.

Features

Admin Section

  • Login/Logout
  • Admin Page
  • Manage Users
  • Forgot Password

Users Section

  • Login and Registration
  • Services Page
  • Forgot Password
  • Logout

How to Run

Requirements

  • Download and Install any local web server such as XAMPP/WAMP.
  • Download the provided source code zip file. (download button is located below)

Setting up your local server to send email

Configure php.ini

  1. Open php.ini in C:\xampp\php\php.ini.
  2. Find extension=php_openssl.dll and remove the semicolon from the beginning of that line.
  3. Find [mail function], enable the ff. by removing the semicolon at the start of the line then, change their values:
    • SMTP=smtp.gmail.com
    • smtp_port=465
    • sendmail_from = [email protected]
    • sendmail_path = "C:\xampp\sendmail\sendmail.exe -t"

Configure sendmail.ini

  1. Open sendmail.ini in C:\xampp\sendmail\sendmail.ini
  2. Find [sendmail], enable the ff. by removing the semicolon at the start of the line, then change their values:

Installation/Setup

  1. Open your XAMPP/WAMP's Control Panel and start the Apache and MySQL.
  2. Extract the downloaded source code zip file.
  3. If you are using XAMPP, copy the extracted source code folder and paste it into the XAMPP's "htdocs" directory. And If you are using WAMP, paste it into the "www" directory.
  4. Browse the PHPMyAdmin in a browser. i.e. http://localhost/phpmyadmin
  5. Create a new database naming testingserver.
  6. Import the provided SQL file. The file is known as testingserver.sql located inside the db folder.
  7. Browse the Simple Registration System in a browser. i.e. http://localhost/itest.

Sample Admin Login:

Username: Norman
Password: AKAKLARRYEE

Sample User Login:

Username: bruno
Password: 1234

DEMO

I hope this Simple Registration System in PHP will help you with what you are looking for and you'll find/learn something useful for your future PHP Projects. Feel Free to modify the source code the way you wanted to enhance your knowledge and understanding of how does the web application was developed.

Enjoy :)

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:

1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

Comments

Add new comment