Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
RestoranPondokEdo
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
Mei Romauli Sagala
RestoranPondokEdo
Commits
50538715
Commit
50538715
authored
May 23, 2017
by
Mei Romauli Sagala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
penggunaan sript
parent
5c07e5cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
+8
-12
cek_daftar.php
cek_daftar.php
+8
-12
No files found.
cek_daftar.php
View file @
50538715
<?php
include
(
'koneksi.php'
);
include
'common/header.php'
;
//menginisiasi variabel-variabel yang dikirimkan dari form-->input name
//fix problem : undefined index...
...
...
@@ -37,20 +36,16 @@
if
(
$cek_username
==
0
){
//jika nama tidak ditemukan/belum terdaftar
//lakukan penambahan data
$id
=
$countData
+
1
;
mysqli_query
(
$GLOBALS
[
"___mysqli_ston"
],
"INSERT INTO member VALUES('
$id
','
$nama
','
$address
','
$hp
','
$uname
','
$pass
','
$email
', '1')"
);
echo
"<div class='alert'> <h2> Pendaftaran Berhasil </h2> </div>"
;
echo
"<a href='form_daftar.php' class='btn btn-primary'> <span class='glyphicon glyphicon-chevron-left'></span> Kembali </a>"
;
echo
(
"<script> alert('Pendaftaran berhasil')</script>"
);
echo
"<meta http-equiv='refresh' content='1 url=form_daftar.php'>"
;
}
else
{
echo
"<h2> username pengguna sudah terdaftar. Silahkan ganti username anda</h2>"
;
echo
"<
a href='form_daftar.php' class='btn btn-info'>Kembali ke halaman pendaftaran</a
>"
;
echo
(
"<script> alert('Username sudah terdaftar , silahkan ganti username anda')</script>"
)
;
echo
"<
meta http-equiv='refresh' content='1 url=form_daftar.php'
>"
;
}
}
else
{
//jika kata sandi tidak sama
echo
"<h2>Kata Sandi Tidak Cocok</h2>"
;
echo
"<a href='form_daftar.php' class='btn btn-info'>Kembali </a
>"
;
echo
(
"<script> alert('katasandi tidak sama')</script>"
)
;
echo
"<meta http-equiv='refresh' content='1 url=form_daftar.php'
>"
;
}
echo
'<br/> <br/>'
;
include
'common/footer.php'
;
?>
\ 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