Professional Documents
Culture Documents
Admission
Admission
I hereby declare that the work, which is being presented in minor project
entitled “Admission enquiry ” in partial fulfilment for the award
of Degree of “Diploma ” and submitted to the Department of
COMPUTERSCIENCE & RajeshPilotGovtPolytechnicCollegeDausa. is a record of
my own investigations carried under the Guidance of Shri Vishnu Sharma of
computer science lecturer in RPGPC,Dausa
I have not submitted the matter presented in this report anywhere for the
award of any other work.
Date:
Place:
(i)
CERTIFICATE
This is certify that this embodies the original work done by vijaykant
yadav,jitendra prajapati ,yatendra sharma& sunil sharma during the project
training as a partial fulfillment of the requirement for the award of the diploma
in computer science &Engineering ,of the Board of technical education
Rajasthan
GPC, DAUSA
(ii)
ACKNOWLEDGEMENTS
We express my sincere gratitude and indebtedness to the project guide Mr.VISHNU
SHARMA for his value ,encouragement and affection for the successfully completion
of this project. His sincere sympathy and attitude always encouraged me to carry out
the present work family .i express my thankfulness to Dr.ANIL AJMERA head of the
Department of Computer Science& Engineering of Rajesh Pilot Govt.Polytechnic
College,Dausa Rajasthan for providing us with best facilities in the department and
his timely suggestions. Last but not least I would like to thank all my friends and well
wishers who were involved directly in successfully completion of the present work.
Vijaykant Yadav
Jitendra Prajapati
Yatendra Sharma
Sunil Sharma
(iii)
TABLE OF CONTENT
Sr no. PARTICULAR NAME Page
No.
INTRODUCTION TO WEB(HTML,CSS AND PHP,
1. MYSQL) 1-2
introduction
1. Introduction to Web
The web is a complex, international, cross platform, cross language, cross
cultural mesh of servers, clients, users, databases, and quite a few artificial
intelligences all talking, working, searching, viewing, accessing, downloading
together. It is the largest client/server system implemented to date. A
client/server system is a very keen way of distributing information across
information systems like a local area network (LAN), a wide area network
(WAN), or the Internet.
HTML
HTML stands for Hypertext Markup Language, and it is the most widely used
language to write Web Pages. Hypertext refers to the way in which Web pages
(HTML documents) are linked together. Thus, the link available on a webpage
is called Hypertext.
CSS
CSS stands for Cascading Style Sheets. It is a style sheet language which is
used to describe the look and formatting of a
document written in markup language. It provides an additional feature to
HTML. It is generally used with HTML to change the style of web pages and
user interfaces. CSS is used along with HTML and JavaScript in most websites
to create user interfaces for web applications and user interfaces for many
mobile applications
1
PHP
PHP is a popular server-side scripting language used for web development. It
was created in 1994 by Rasmus Lerdorf and has since evolved into a powerful
tool for building dynamic websites and web applications. PHP is open source
and can be used on almost any operating system, making it a versatile language
for developers.
One of the benefits of using PHP is its compatibility with various databases,
including MySQL, Oracle, and PostgreSQL. This allows developers to easily
create and manage databases for their web applications. Additionally, PHP has a
large community of developers who contribute to its development and offer
support to other developers. Overall, PHP is a reliable and efficient language for
web development that continues to evolve with the changing needs of the
industry.
MYSQL
HTML is the foundation of the web, and it is essential for anyone who wants to
create web pages or web applications. It is a relatively simple language to learn,
but it can be used to create complex and sophisticated web pages. HTML is
constantly evolving, and new versions are released periodically to keep up with
the latest web technologies.
3
HTML Attribute
the highest level and <h6> the lowest. Headings are used to define the
Links: Links allow users to navigate between web pages. They are
created
using the <a> (anchor) tag, which requires an href attribute specifying
Forms: HTML provides form elements for capturing user input. Form
menus are created using tags like <input>, <textarea>, <select>, and
7
Creating an admission enquiry requires knowledge of web development
and programming. Here is a simple example using HTML, CSS, and PHP:
HTML CODE:
<!DOCTYPE html>
<html>
<head>
<title>Admission Enquiry</title>
<link rel="stylesheet" type="text/css" href="enq.css">
</head>
<body>
<div class="container">
<h2>Admission Enquiry Form</h2>
<form action="enq.php" method="POST">
<label for="name">Name:</label>
<input type="text" id="name" name="name" required>
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
8
<label for="dob">dob:</label>
<input type="date" id="dob" name="dob" required>
<label for="course">Course:</label>
<select id="course" name="course" required>
<option value="">Select Course</option>
<option value="engineering">Engineering</option>
<option value="Diploma">Diploma Engineering</option>
</select>
<label for="branch">Branch:</label>
<select id="branch" name="branch" required>
<option value="">Select Branch</option>
<option value="computer science & engineering">Computer Science
& Engineering</option>
<option value="electronics engineering">Electronics
Engineering</option>
<option value="electrical engineering">Electrical
Engineering</option>
<option value="mechanical engineering">Mechanical
Engineering</option>
<option value="civil engineering">Civil Engineering</option>
9
<option value="cyber security Engineering">Cyber Security
Engineering</option>
</select>
<label for ="state">State:</label>
<select id="state" name="state" required>
<option value="">Select State</option>
<option value="Andaman & Nicobar">Andaman & Nicobar</option>
<option value="Andhra Pradesh">Andhra Pradesh</option>
<option value="Assam">Assam</option>
<option value="Bihar">Bihar</option>
<option value="Chandigarh">Chandigarh</option>
<option value="Chhattisgarh">Chhattisgarh</option>
<option value="Delhi">Delhi</option>
<option value="Dhaka">Dhaka</option>
<option value="Goa">Goa</option>
<option value="Haryana">Haryana</option>
<option value="Himachal Pradesh">Himachal Pradesh</option>
<option value="Jammu & Kashmir">Jammu & Kashmir</option>
<option value="Jharkhand">Jharkhand</option>
<option value="Karnataka">Karnataka</option>
<option value="Kerala">Kerala</option>
<option value="Punjab">Punjab</option>
10
<option value="Tamil Nadu">Tamil Nadu</option>
<option value="Rajasthan">Rajasthan</option>
<option value="Uttar Pradesh">Uttar Pradesh</option>
<option value="Uttarakhand">Uttarakhand</option>
<option value="West Bengal">West Bengal</option>
</select>
<label for="gender">Gender:</label>
<input type="radio" id="Male" name="gender" required>Male
<input type="radio" id="Female" name="gender" required>Female
<input type="radio" id="Other" name="gender" required>Other
11
CSS CODE:
.container {
width: 200px;
margin: 0 auto;
padding: 20px;
border: 1px solid #ccc;
border-radius: 5px;
}
h2 {
text-align: center;
}
label {
display: block;
margin-bottom: 5px;
}
select[id="state"],
select[id="branch"],
select[id="course"],
input[type="text"],
12
input[type="email"],
input[type="date"] {
width: 100%;
padding: 5px;
margin-bottom: 10px;
}
input[type="submit"] {
width: 100%;
padding: 10px;
background-color: #4CAF50;
color: white;
border: none;
cursor: pointer;
}
13
PHP AND MYSQL CODE:
<?php
$name = $_POST['name'];
$email = $_POST['email'];
$phone = $_POST['phone'];
$dob = $_POST['dob'];
$course = $_POST['course'];
$branch = $_POST['branch'];
$state = $_POST['state'];
$gender = $_POST['gender'];
// Database connection
$servername = "localhost";
$username = "root";
$password = "pavanyadav";
$dbname = "detailform";
14
// Insert data into the database
$sql = "INSERT INTO suchana (name, email, phone, dob,course,
branch, state, gender) VALUES ('$name', '$email', '$phone', '$dob',
'$course', '$branch', '$state', '$gender')";
if (mysqli_query($conn, $sql)) {
echo "Enquiry submitted successfully!";
} else {
echo "Error: " . $sql . "<br>" . mysqli_error($conn);
}
mysqli_close($conn);
?>
NOTE:
This code assumes that you have a MySQL database set up with a
table named "suchana" that has columns "name" (varchar), "email"
(varchar), “phone” (int) "dob" (date), "gender" (varchar), "course"
(varchar), "Branch" (varchar), and "state" (varchar).
15
his is a minor project that collects the user's name, email, and phone
number through an HTML form and submits it to the enq.php file.
The enq.php file connects to a MySQL database and inserts the form
data into an "suchana" table. You'll need to set up a local development
environment with PHP and MySQL to run this code successfully.
16