Vous êtes sur la page 1sur 10

MUMBAI UNIVERSITY

Vikas College of Arts, Science &


Commerce

TYCS Computer Science

NAME - PRATIK GARUD


ROLL NO - 193707
USER REGISTRATION FORM
ABSTRACT
User Registration Form is used by user for
login purpose & new user can sign up for new
account by filling the details asked by the
system. A registered user is a user of
a website, program, or other system who has
previously registered. Registered users
normally provide some sort of
credentials (such as a username or e-mail
address, and a password) to the system in
order to prove their identity: this is known
as logging in. Systems intended for use by the
general public often allow any user to register
simply by selecting a register or sign
up function and providing these credentials
for the first time. Registered users may be
granted privileges beyond those granted to
unregistered users.
INDEX
 INTRODUCTION
1.Objective
2.Overview
 REQUIREMENT & SPECIFICATIONS
1.Developer Requirements
2.User Requirements
 IMPLIMENTATION & WORKING
 REFERENCES
 INTRODUCTION
The project is about the user registration where
the user Login into the system or else Sign Up if
not registered. Everytime the new user registers
into system the information about the user is
saved into database & can be only viewed by the
admin.
1. Objective
The objective of this project is to allow the user to
register with the help of login or sign up function
& to understand & study the process of coding
used in the project. The records of the users are
stored in the database created. The Usernames,
Emails, Phone numbers, Passwords are saved in
the database management system.
2.Overview
A registration form is a list of fields that a user will
input data into and submit to a company or
individual. There are many reasons why you
would want a person to fill out a registration
form. Companies use registration forms to sign up
customers for subscriptions, services, or other
programs or plans.
 REQUIREMENT & SPECIFICATIONS
1.Developer Requirements
 Apache Server: XAMPP
 Writing Code: Sublime Text
 Intel Pentium IV processor or equivalent or
higher
 512 MB Ram or Higher
20 GB HDD or Higher
Network Connectivity
2.User Requirements
User needs a computer or any other devices
which supports network connectivity from where
he/she can visit the user registration form page.

 IMPLIMENTATION &
WORKING
The code can be separated into 3 parts.
1. Getting user information via a HTML form.
2. Validating user submitted information on
form submit.
3. Database handling to save registered user to
the database after validation.
The third step will be executed after ensuring that
the user is not added already. This data
uniqueness validation will be performed based on
their email and username entered by them.
During registration we generally collect user
information, who are ready to register with our
application. Some of them will be mandatory and
some of them will be optional.
So, this functionality may also include validation
part to ensure about the non-emptiness and the
format of the user data. The validation could be
done either in client-side or server side.
Having validation at server-side is always better.
You can choose to have it in client-side also for
the ease of use of the users. But having at the
server-side is not optional and a minimum
requirement.
Steps to creating Simple User
Registration Script in PHP and MySQL
1. Create a database
2. Creating table with five fields
o id

o username

o email

o phone number

o password

3. Create form in html


4. Adding styles to form
5. Connect to the database using php
6. Writing logic for user registration script in php
UML DIAGRAM
1. Create a Database
For creating a database, login to phpmyadmin, then
click on Databases tab. And in the input field enter
database name and click on create database button.

2. Creating a Database table


After creating Database, Create a database table for
users, it’s simple table with user name, email,
password, active and an id as primary key and also it is
auto incremented.
 id is the primary key and auto incremented.
 Username field will be used for storing username
 email field will be used for storing email address of
user, this will be used to send forgotten password by
email in this series.
 Phone number field will be used to store the phone
number of a particular user.
 Password field will store password of user in normal
format.
3. Create form in html
Save this file as registration.php, Here this is simple
html for generating form. This form contains user
name field, email, password a submit button and a link
to login.php file. Here i’m adding some classes to the
HTML, Later i can add some styles.

4. Adding styles to form


Here i’ve added some styles to form, so that it will look
good. I’m using Bootstrap with some custom styles.
Put this code in head section of registeration.php file

5. Connect to the database


Create a file with name connect.php. Here i’m
connecting to database and selecting the database.
User correct database name & user credentials.

6. Writing logic for user registration script in php


All the registration process done in one single php file,
in this file we will display an html form for user to
register. In the PHP section we will first connect to the
database, then we will select the database, if the
values are posted, then we are running a MySQL query
it will insert the values into the database.
Add this code registration.php file above the html
code. That means right before step 3 code. If you have
any dobut, you can check the final code.

 REFERENCES
https://codewithawa.com/posts/complete-user-
registration-system-using-php-and-mysql-database
https://www.tutorialrepublic.com/php-tutorial/php-
mysql-login-system.php
https://codingcyber.org/simple-user-registration-
script-in-php-and-mysql-84/

Vous aimerez peut-être aussi