Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
Book management system
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Oviya Balamurugan
Book management system
Commits
0d7d6ae4
Commit
0d7d6ae4
authored
4 years ago
by
Oviya Balamurugan
Browse files
Options
Downloads
Patches
Plain Diff
new user register code
parent
1daf4852
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
new.php
+58
-0
58 additions, 0 deletions
new.php
with
58 additions
and
0 deletions
new.php
0 → 100644
+
58
−
0
View file @
0d7d6ae4
<?php
include
"database.php"
;
?>
<
!
DOTYPE
HTML
>
<html>
<head>
<title>
BOOK MANAGEMENT SYSTEM
</title>
<link
rel=
"stylesheet"
type =
"text/css"
href=
"css/style.css"
>
</head>
<body>
<div
id=
"container"
>
<div
id=
"header"
>
<h1>
BOOK MANAGEMENT SYSTEM
</h1>
</div>
<div
id=
"wrapper"
>
<h3
id=
"heading"
>
new user registration
</h3>
<div
id=
"center"
>
<?php
if
(
isset
(
$_POST
[
"submit"
]))
{
$sql
=
"insert into student(NAME,PASS,MAIL,DEP) values('
{
$_POST
[
"name"
]
}
','
{
$_POST
[
"pass"
]
}
','
{
$_POST
[
"mail"
]
}
','
{
$_POST
[
"dep"
]
}
')"
;
$mysqli
->
query
(
$sql
);
echo
"<p class='success'>user registration success</p>"
;
}
?>
<form
action =
"
<?php
echo
$_SERVER
[
"PHP_SELF"
];
?>
"
method=
"post"
>
<label>
name
</label>
<input
type =
"text"
name=
"name"
required
>
<label>
Password
</label>
<input
type=
"password"
name=
"pass"
required
>
<label>
Email ID
</label>
<input
type=
"email"
name=
"mail"
required
>
<select
name=
"dep"
>
<option
value
"
BCA
"
>
BCA
</option>
<option
value
"
CSE
"
>
CSE
</option>
<option
value
"
BSC
"
>
BSC
</option>
<option
value
"
OTHER
"
>
OTHERS
</option>
</select>
<button
type=
"submit"
name=
"submit"
>
Register now
</button>
</form>
</div>
</div>
<div
id=
"navi"
>
<?php
include
"sidebar.php"
?>
</div>
<div
id=
"footer"
>
<p>
Copyright
©
book management 2020
</p>
<div>
</div>
</body>
</html>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment