PHP Report
PHP Report
Wbp report 32
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.
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?
<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 if (empty($_POST["t3"]))
<input type="text" name="t1"
{
size=20> $error = "Please enter email"."<br>";
<br> echo $error;
<br> } else {
Enter contact number <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 <input{type="text"name="t3" size=20>
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