Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PSW_II_PARIWISATA_TRANSPORTASI
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Proyek_PSW_II_PARIWISATA
PSW_II_PARIWISATA_TRANSPORTASI
Commits
36bb98bd
Commit
36bb98bd
authored
Jun 06, 2020
by
11319009_Pratiwi Sibarani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
6282e913
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
91 additions
and
0 deletions
+91
-0
register.php
transportasi/register.php
+91
-0
No files found.
transportasi/register.php
0 → 100644
View file @
36bb98bd
<?php
session_start
();
require_once
(
'common/dbconfig.php'
);
if
(
isset
(
$_POST
[
"submit"
])){
// alert
if
(
register
(
$_POST
)
>
0
){
if
(
$_SESSION
[
'captcha'
]
==
$_POST
[
'captcha'
])
{
// code...
echo
"
<script>
alert('Selamat! Akun berhasil di daftar!');
document.location.href = 'index.php';
</script>
"
;
}
else
{
echo
"
<script>
alert('Akun gagal di daftar. Coba lagi!');
document.location.href = 'register.php';
</script>
"
;
}
}
else
{
echo
"
<script>
alert('Akun gagal di daftar. Coba lagi!');
document.location.href = 'register.php';
</script>
"
;
}
}
?>
<!DOCTYPE html>
<html>
<head>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"public/css/login.css"
>
<link
rel=
"icon"
type=
"image/png"
href=
"public/img/logoTravel.png"
/>
<title>
Register Page
</title>
</head>
<body>
<h1>
Selamat Datang di Pendaftaran
<br/>
Travel OK
</h1>
<div
class=
"kotak_login"
>
<center>
<img
src=
"public/img/logoTravel.png"
width=
"100px;"
>
</center>
<form
action=
""
method=
"post"
>
<label
for=
"nama"
>
Nama Lengkap
</label>
<input
type=
"text"
name=
"nama"
id=
"nama"
class=
"form_login"
placeholder=
"Nama Anda"
required=
"required"
autocomplete=
"off"
autofocus
>
<label
for=
"email"
>
Email
</label>
<input
type=
"email"
name=
"email"
id=
"email"
class=
"form_login"
placeholder=
"Nama Anda"
required=
"required"
autocomplete=
"off"
>
<label
for=
"alamat"
>
Alamat
</label>
<input
type=
"text"
name=
"alamat"
id=
"alamat"
class=
"form_login"
placeholder=
"Nama Anda"
required=
"required"
autocomplete=
"off"
>
<label
for=
"j_kelamin"
>
Jenis Kelamin
</label>
<select
class=
"form_login"
name=
"j_kelamin"
>
<option
value=
"Laki-laki"
>
Laki-laki
</option>
<option
value=
"Perempuan"
>
Perempuan
</option>
</select>
<label
for=
"username"
>
Username
</label>
<input
type=
"text"
name=
"username"
id=
"username"
class=
"form_login"
placeholder=
"Username"
required=
"required"
autocomplete=
"off"
>
<label
for=
"password"
>
Password
</label>
<input
type=
"password"
name=
"password"
id=
"password"
class=
"form_login"
placeholder=
"Password .."
required=
"required"
autocomplete=
"off"
>
<label
for=
"password"
>
Captcha:
</label>
<input
type=
"text"
name=
"captcha"
maxlength=
"4"
required=
"required"
autocomplete=
"off"
>
<br><br>
<center>
<img
src=
"captcha.php"
><br>
</center>
<button
type=
"submit"
name=
"submit"
class=
"tombol_login"
>
Daftar
</button>
<!-- <input type="submit" name="register" class="tombol_login" value="DAFTAR"><br><br> -->
<a
href=
"index.php"
>
<button
type=
"button"
name=
"button"
>
Kembali
</button>
</a>
</center>
</form>
</div>
</body>
</html>
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