0% found this document useful (0 votes)
25 views9 pages

PHP Report

The document outlines a micro-project report for developing an online employee details website using HTML, CSS, and PHP. It details the project's rationale, aims, benefits, methodology, and the skills developed through the project, including database operations and form validation. The website serves as a platform for employees to access their details and qualifications, and includes a contact page for communication.

Uploaded by

raut.tanhaji1956
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views9 pages

PHP Report

The document outlines a micro-project report for developing an online employee details website using HTML, CSS, and PHP. It details the project's rationale, aims, benefits, methodology, and the skills developed through the project, including database operations and form validation. The website serves as a platform for employees to access their details and qualifications, and includes a contact page for communication.

Uploaded by

raut.tanhaji1956
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

lOMoARcPSD|29194925

Wbp report 32

Computer science engineering (Gayatri Vidya Parishad College of Engineering)

Scan to open on Studocu

Studocu is not sponsored or endorsed by any college or university


Downloaded by Viraj Deshmukh ([email protected])
lOMoARcPSD|29194925

WBP (22619)
Micro-project report
Online employee details Website

1.0 Rationale: -
This micro-project consists of an online employee details website. This website Provides the data
of the employees along with their job qualification. There is a contact page that can be used by
the employees.

2.0 Aim/Benefits of the micro project: -


Aim: The aim of this microproject is to develop an online employee details website using
HTML, CSS and PHP.
Benefits:
1. This microproject helped in connecting the website forms to the database using php.

2. Also, the project helped us to validate forms using php.

3.0 Course Outcomes Addressed: -


i. Develop program using control statement.
ii. Use form controls with validation to collect user’s input.
iii. Perform database operations in PHP.

4.0 Literature Review: -


For developing the online employee details website, the following websites have been referred so
as to get an idea of how the website should look and what features can be added.
Reference site: -
 https://www.computerscienceai.com/
 https://phpgurukul.com/

Downloaded by Viraj Deshmukh ([email protected])


lOMoARcPSD|29194925

Downloaded by Viraj Deshmukh ([email protected])


lOMoARcPSD|29194925

5.0 Actual Methodology Followed:


1) Selecting topic for microproject

2) Preparing the proposal

3) Using validations
The contact form has been validated using PHP. The form checks whether all fields are filled or
not. The name, contact number and email address text fields have been validated to accept only
characters, numbers and emailid respectively.
w=900&t=st=1682024491~exp
=1682025091~hmac=d534738
4) PHP code 6b5213a55e060b48da2ecbbf3a
7fc98222a4a64c665839cb8a8d
Registration page: 6976b");
background-repeat: no-repeat;
<!-- PHP command to link background-size: cover;
server.php file with registration background-
form --> image:size("width=1000,height
<?php include('server.php'); =500");
include('linkDB.php'); ?> }
#btn
<!DOCTYPE html> {
<html lang="en"> background-color: grey;
<head> width: 10%;
<meta charset="UTF-8"> }
<meta http-equiv="X-UA- .container{
Compatible" content="IE=edge"> justify-content: center;
<meta name="viewport" text-align: center;
content="width=device-width, align-items: center;
initial-scale=1.0"> }
<title>Registration</title> input{
padding: 5px;
<!-- CSS Code --> }
<style> .error{
body background-color:
{ pink;
color: red;
width: 300px;
background-image: margin: 0 auto;
url("https://img.freepik.com/free- }
photo/wooden-board-empty-table- </style>
top-blurred-background_1253- </head>
1584.jpg?

Downloaded by Viraj Deshmukh ([email protected])


lOMoARcPSD|29194925

<body> <input type="password"


<hr color="Black"> name="password"
<div class="logo"><img placeholder="password"><br>
src="https://png.pngtree.com/png- <br>
clipart/20211104/ourmid/pngtree- <input type="password"
female-chef-of-dessert-making-in- name="repeatPassword"
cartoon-food-restaurant-png- placeholder="Repeat
image_4019331.png" width="75" Password"><br><br>
heiht="75"></div> <label
<p><span><b><h1>The light- for="checkbox">Stay logged
hearted refresher! in</label>
</h1></span></b> <input type="checkbox"
name="stayLoggedIn"
<body> id="chechbox" value="1">
<div class="container"> <br><br>
<h1>Registration form</h1> <input type="submit"
name="signUp" value="Sign
Up">
<p >Have an account
<div class="form"
already? <a
id="signUp">
href="login.php">Log
<form method="POST">
In</a></p>
<div class="error"> <?php
</form>
echo $error ?> </div>
</div>
<!--------- To check user
</body>
regidtration status ------->
</html>
<p>
<?php
if (!isset($_COOKIE["id"])
OR !isset($_SESSION["id"]) ) {
echo "Please first register
to proceed.";
}
?>
</p>
<input type="text" Login page:
name="name" placeholder="User
Name"> <br> <br>
<input type="email"
name="email"
placeholder="Email"> <br><br>
<!-- PHP command to link server.php
file with registration form --> <!DOCTYPE html>
<?php include('server.php'); <html lang="en">
include ('linkDB.php'); ?> <head>

Downloaded by Viraj Deshmukh ([email protected])


lOMoARcPSD|29194925

<meta charset="UTF-8"> <div class="container">


<meta http-equiv="X-UA- <h1> Login</h1>
Compatible" content="IE=edge">
<meta name="viewport" <!--------log in form------>
content="width=device-width, initial-
scale=1.0"> <div class="logInForm" id="logIn">
<title>User logIn</title> <form
action="homep.php"method="POST">
<style>
{ <!-- To show errors if user put wrong
background-image: data -->
url("https://img.freepik.com/premium- <div class="error"> <?php echo
photo/cup-hot-coffee-latte-table-cafe- $error?> </div>
with-shallow-depth-field_258743-
129.jpg?w=1060"); <!-- To check the user loged In
background-repeat: no-repeat; status -->
background-size: cover; <p>
background- <?php
image:size("width=1000,height=500"); if (!isset($_COOKIE["id"]) OR !
} isset($_SESSION["id"]) ) {
.container{ echo "<p>Please first log in to
justify-content: center; proceed.</p>";
text-align: center; }
align-items: center; ?>
} </p>
input{
padding: 5px; <input type="email" name="email"
} placeholder="Email"> <br><br>
.error{ <input type="password"
background-color: pink; name="password"
color: red; placeholder="password"><br><br>
width: 300px; <label for="checkbox">Stay logged
margin: 0 auto; in</label>
} <input type="checkbox"
</style> name="stayLoggedIn" id="chechbox"
</head> value="1"> <br><br>
<body> <input type="submit" name="logIn"
<hr color="Black"> value="Log In">
<div class="logo"><img
src="https://png.pngtree.com/png- <!-- User registration form link -->
clipart/20211104/ourmid/pngtree- <p>Not a register user <a
female-chef-of-dessert-making-in- href="index.php"> Create
cartoon-food-restaurant-png- Account</a></p>
image_4019331.png" width="75" </form>
heiht="75"></div> Contact page:
<p><span><b><h1>The light-hearted
refresher!</h1></span></b>

Downloaded by Viraj Deshmukh ([email protected])


lOMoARcPSD|29194925

<html> <br>
<head> <br>
<style> How was your experience :
body <br>
{ <br>
background-image: url("https://encrypted-tbn0.gstatic.com/images?
<textarea name="textarea" cols=40 rows=4>
q=tbn:ANd9GcS0jgfEJYfhzI43OLpXEu34zS9z7fXySHFpSg&usqp=CAU");
</textarea>
background-repeat: no-repeat; <br>
background-size: cover; <br>
}</style> <div id="submit-btn">
</head> <input type="submit" name="s1" value="Submit" class=
<body> </div>
<div class="logo"><img src="https://png.pngtree.com/png-clipart/20211104/ourmid/pngtree-
<br>
female-chef-of-dessert-making-in-cartoon-food-restaurant-png-image_4019331.png"
<br>
width="75" heiht="75"></div> </form>
<h2><a href="homep.php"font onmouseover="this.style.color='red';"
<?php
onmouseout="this.style.color='blue';">Go to home pageif($_SERVER['REQUEST_METHOD']
</font></a></h2> == 'POST')
<div class="head_title text-center"> {
<div class="main_contact_content"> if (empty($_POST["t1"]))
<div class="row"> {
<div class="col-sm-6"> $error = "Please enter name"."<br>";
<div class="single_contact text-left"> echo $error;
<h4>Susangat</h4> } else {
<span>Hostel No. 2 Room No. 2114</span> $name = $_POST["t1"];
<span>Bhopal, Pincode 462003</span> if (!preg_match("/^[a-zA-Z]*$/", $name)) {
</div> $error = "Invalid name entered"."<br>";
</div> echo $error;
<div class="col-sm-6"> }
<div class="single_contact text-left"> }
<h4>Reservations</h4> if (empty($_POST["t2"])) {
<span>[email protected]</span> $error = "Please enter contact number"."<br>";
<span>+919630938548</span> echo $error;
</div></div></div> } else {
<right> $mobileno = $_POST["t2"];
<h1> Contact Form </h1> if (!preg_match("/^[0-9]*$/",$mobileno)) {
</righr> $error = "Invalid number entered"."<br>";
</head> echo $error;
<body> }
<form class="form-border"method="post" name="form1"> }
Enter your name &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; if (empty($_POST["t3"]))
<input type="text" name="t1"
{
size=20> $error = "Please enter email"."<br>";
<br> echo $error;
<br> } else {
Enter contact number &nbsp; &nbsp;<input type="text" name="t2"size=20>
$email = $_POST["t3"];
<br> $pattern = "^[_a-z0-9-]+(\.[_az0-9-]+)@[a-z0-9-]+(\.[a-
<br> if (!preg_match ($pattern,$email) )
Enter email address &nbsp; &nbsp;&nbsp;&nbsp; <input{type="text"name="t3" size=20>

Downloaded by Viraj Deshmukh ([email protected])


lOMoARcPSD|29194925

$ErrMsg = "Email is not valid."."<br>"; </html>


echo $ErrMsg;
} </div>
} </div>
if (empty($_POST["textarea"])) {
</script>
$error = "Please provide your feedback"."<br>";
echo $error; </body>
} </html>
else{ 5) Preparing the report.
echo "Valid details have been entered"; 6) Submission of report.
}
} 6.0 Actual Resources Used
?>
</body>

7.0 Output of the microproject


Registration page:

Login Page:

Contact page:

Name Of
Sr.no Specification Quantity Remarks
Resources/Materials
Processor-Intel
Pentium,
1. Computer System RAM-2GB, 1 -
Operating system-
Windows 10.

MS word, XAMPP
2. Software Server, VS code, 1 -
phpMyAdmin

Downloaded by Viraj Deshmukh ([email protected])


lOMoARcPSD|29194925

8.0 Skills Developed: -


1) Learnt how to perform insert, delete, update and retrieval operations for database using
PHP.
2) Learnt validation of forms using PHP.
3) Learnt to apply php concepts to the website.

9.0 Applications Of Micro Project: -


Provides basic information about the coffee shop using this cafe website. This website will help
the customers choose the menu they like before visiting the café and reserve the tables as per
their need.

10.0 Name and rollno:-

Roll no. Name Enrollment number


22 Purva Desai 2000070171

Downloaded by Viraj Deshmukh ([email protected])

You might also like