PHP MP
PHP MP
MICRO PROJECT
Academic year: 2022-2023
Certificate
Seal of
Institution
Annexure - I
Proposed Methodology:
1. Literature survey.
2. Collect information through different sources
3. Analysis of data.
4. Compilation of collected data.
Roll No Individual
Sr. Process and Total
Name of Students Presentation
No. Product
(04) (10)
assessment (06)
01 1904
Jash Mhatre
02 1905
Satvik Pereira
03 1906
Stalin Rodrigues
Title:
RATIONALE. PHP is a general purpose, server-side scripting language run a web server that's designed to
make dynamic pages and applications. PHP as a web development option is secure, fast and
reliable. In the growing field of Web technology it is essential for every Diploma pass outs to
learn PHP Language to help them build interactive web applications. This course is designed
to inculcate web based applications development skills in students using server side scripting
with PHP.
2. 0 Course Outcomes Integrated:
a) Develop program using control statement.
b) Perform operations based on arrays and graphics.
c) Develop programs by applying various object oriented concepts.
d) Use form controls with validation to collect user’s input.
e) Perform database operations in PHP.
3.0 Actual Procedure Followed.
1 Discussion about topic with guide and among group members
2 Literature survey
3 Information collection
4 Compilation of content
5 Editing and revising content
6 Report Preparation
4.0: Actual Resources Required:
Sr.
Name of resources/Material Specifications Qty Remarks
No.
Processor: i3
1. Computer 1
RAM : 4.00 GB
2. Microsoft Word Word -2016
3. Printer Hp Laser Jet 1
4. Book/Site name
Title:
Institute Code: 0093/1738 Academic year: 2022-2023
Program: CO Course & Code: PHP(22619)
Name of Candidate: Roll No:
Semester: FIFTH Name of Faculty: Prof.Amrita Rathod
2 Literature Survey .
Information Collection
3 Completion of the
Target as per project
proposal
4 Analysis of Data and
representation
5 Quality of
Prototype/Model/Conte
nt
6 Report Preparation
(B) Individual Presentation/Viva Out of 4
7 Presentation .
8 Viva
Problem Definition:
The problem definition for an online system could vary depending on the specific project.
However, some common issues that may need to be addressed include:
1. User authentication and authorization: The system should have a secure way of
authenticating users and controlling access to certain pages or functionality based on
user roles.
2. Data validation and sanitization: All user input, such as form submissions, should be
validated and sanitized to prevent SQL injection attacks or other security
vulnerabilities.
3. Data storage and retrieval: The system should be able to store and retrieve data from a
MySQL database in a secure and efficient manner.
4. User interface design: The system's user interface should be intuitive, user-friendly,
and accessible to all users.
5. Performance optimization: The system should be optimized to handle a high volume
of users and requests without slowing down or crashing.
6. Error handling and logging: The system should have robust error handling and
logging capabilities to help troubleshoot and fix issues that may arise.
7. Testing and maintenance: The system should be thoroughly tested and maintained to
ensure it remains functional, secure, and up-to-date with the latest technologies and
best practices.
Code:
1. Index.php file
<?php session_start();?>
<!DOCTYPE html>
<html>
<head>
<title>Simple Voting System</title>
<style>
body{
background-color: #90EE90;
font-family: sans-serif;
}
.login_form {
text-align: center;
}
.login_form .box{
text-align: center;
max-width: 500px;
margin: auto;
background:#D7BFDC;
padding: 80px;
border: 10px solid black;
}
.login_form button{
width: 75px;
font-size: 20px;
color: white;
cursor: pointer;
font-weight: bold;
background: #1A237E;
border: 1px solid #3949AB;
transition: .5s;
}
</style>
</head>
<body>
<marquee>Welcome To Online Voting System</marquee>
<form action="vote.php" class="login_form" method="POST">
<?php
if(isset($_SESSION['status']))
{
echo "<h4>".$_SESSION['status']."</h4>";
unset($_SESSION['status']);
}
?>
<h1>Vote for Your Candidate</h1>
<div class="box" >
<div class="font"><b>Email</b></div>
<input autocomplete="off" type="text" name="email"><br><br>
<div class="font2"><b>Password</b></div>
<input type="password" name="password"><br><br>
<div class="font3"><b>Gender</b></div>
<input type="radio" name="gender" value="Male">Male<br>
<input type="radio" name="gender" value="Female">Female<br><br>
<div class="font4"><b>Candidate</b></div>
<input type="radio" name="candidate" value="Cycle">Cycle<br>
<input type="radio" name="candidate" value="Flower">Flower<br>
<input type="radio" name="candidate" value="Umbrella">Umbrella<br>
<input type="radio" name="candidate" value="Clock">Clock<br><br>
<button type="submit" name="submit">Vote</button>
<button type="submit" name="submit">Result</button>
</div>
</form>
</body>
</html>
2. vote.php file
<?php
session_start();
$con = mysqli_connect("localhost","root","","vote");
if(isset($_POST['submit']))
{
$email = $_POST['email'];
$password = $_POST['password'];
$gender = $_POST['gender'];
$candidate = $_POST['candidate'];
if($query_run){
$_SESSION['status'] = "Inserted Successfully";
header("Location: index.php");
}
else{
$_SESSION['status'] = "Not Inserted";
header("Location: index.php");
}
}
?>
Output:
Conclusion
This project for PHP (Web Based Application Development with PHP) has been
created by the students of TYCO (1904,1905,1906), year 2022 to 2023. In this
project we have given the working of online voting system at the basic level
made by using php and mysql.
All the group members worked really hard to create this project and have
contributed equally. Due to this project, we have our concepts clear regarding
various topics in PHP and we can implement this knowledge going further.
• Youtube.com
• javatpoint.com
• tutorialspoint.com
• geeksforgeeks.org
• w3schools.com