Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 22

A

Minor Project Report


submitted
in partial fulfilment
for the award of the Diploma
in Department of Computer Science & Engineering
on the topic
Admission enquiry

SUBMITTED TO: SUBMITTED BY:


Vijay Kant yadav
Mr. Vishnu Sharma Jitendra Prajapati
Yatendra Sharma
(Lecturer, Computer Science) Sunil sharma
(Computer Science, 2nd
year4th semester)

Department of Computer Science & Engineering


Rajesh Pilot Govt. Polytechnic College, Dausa
Session: 2022-2023
CANDIDATE’S DECLARATION

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

Dr. ANIL AJMERA

HOD (Computer Science)

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

OVERVIEW OF HTML 3-7


1. What is html?
2.
2. Definition of html
3. History of html

3. USING TO HTML CODE 8-11

4. CSS CODE 12-13

5. PHP AND MYSQL CODE 14-16


(iv)

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

MySQL is an open-source relational database management system that is


widely used for web applications and other data-driven projects. It is a popular
choice for developers due to its scalability, reliability, and ease of use. MySQL
is compatible with multiple platforms and programming languages, making it
easy to integrate with other technologies.
MySQL uses a client-server architecture and supports multiple storage engines,
including InnoDB, MyISAM, and Memory. It also offers features such as
replication, clustering, and partitioning to help manage large datasets and
improve performance. With its robust security features and efficient indexing
capabilities, MySQL is a powerful tool for managing and analyzing data.
2
OVERVIEW OF HTML:
HTML stands for Hypertext Markup Language. It is a standard markup
language used to create web pages. HTML is used to structure content on the
web, such as text, images, videos, and links. It provides a set of tags and
attributes that define the structure and appearance of web pages.
HTML documents are made up of tags, which are enclosed in angle brackets,
such as <html>, <head>, <title>, <body>, <p>, <img>, <a>, and so on. Tags are
used to define the structure of the page, such as headings, paragraphs, lists,
tables, and forms. Attributes are used to provide additional information about
the tags, such as the color of text, the size of an image, or the destination of a
link.

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

Document Structure: An HTML document starts with the <!DOCTYPE


html> declaration, which informs the browser that the document is
written in HTML. The document's content is enclosed within the <html>
tags, and it typically contains two main sections: <head> and <body>.
The <head> section contains metadata, such as the page title, character
encoding, and linked stylesheets or scripts. The <body> section contains
the visible content of the webpage.

HTML provides six levels of headings, <h1> to <h6>, with <h1>


being

the highest level and <h6> the lowest. Headings are used to define the

hierarchy and structure of the content

Links: Links allow users to navigate between web pages. They are
created

using the <a> (anchor) tag, which requires an href attribute specifying

the UR to link to.For example, <a href="https://example.com">Visit

Visit Example</a> creates a link to the "https://example.com" URL with

the anchor text "Visit Example".

Forms: HTML provides form elements for capturing user input. Form

controls such as text fields, checkboxes, radio buttons, and dropdown

menus are created using tags like <input>, <textarea>, <select>, and

<button>. Form data is submitted to a server using the <form> tag.


4

This is an admission enquiry form


.

Fill your enquiry form


5
Then you submit form

Massage print display

Create a database table


Store data in database

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>

<label for="phone">Phone no:</label>


<input type="tel" id="phone" name="phone" 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

<input type="submit" value="Submit">


</form>
</div>
</body>
</html

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";

$conn = mysqli_connect($servername, $username, $password,


$dbname);
if (!$conn) {
die("Connection failed: " . mysqli_connect_error());
}

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).

Remember to secure your code against SQL injection and validate


user input appropriately before inserting it into the database

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

You might also like