Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
TB_Center
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Andry F. Hutapea
TB_Center
Commits
acdd65f8
Commit
acdd65f8
authored
May 26, 2017
by
Andry F. Hutapea
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perubahan
parent
0c6a4554
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
login_process.php
login_process.php
+34
-0
No files found.
login_process.php
0 → 100644
View file @
acdd65f8
<?php
session_start
();
$data_username
=
$_POST
[
'username'
];
$data_password
=
$_POST
[
'password'
];
$host
=
"localhost"
;
$user
=
"root"
;
$password
=
""
;
$db_name
=
"percobaan"
;
$connection
=
mysqli_connect
(
$nama
,
$username
,
$password
,
$db_name
);
$query
=
"select * form tbc where username ='
$user
' and password = '
$password
'"
;
$exce
=
mysqli_query
(
$connection
,
$db_name
);
$user_konfirmasi
=
""
;
$password_konfirmasi
=
""
;
if
(
$data_username
==
$user_konfirmasi
&&
$data_password
==
$password_konfirmasi
){
echo
"Berhasil Login"
;
}
else
{
echo
"gagal login"
;
}
$_SESSION
[
"username"
]
=
$data_username
;
$_SESSION
[
"password"
]
=
$data_password
;
//
$new_location
=
"admin.php"
;
header
(
'Location: '
.
$new_location
);
?>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment