-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
50 lines (46 loc) · 2.23 KB
/
Copy pathindex.php
File metadata and controls
50 lines (46 loc) · 2.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
session_start();
if ( isset($_POST["submit"])) {
$_SESSION["lokasi"] = $_POST["lokasi"];
$_SESSION["tipe"] = $_POST["tipe"];
header("Location: /destination/");
exit;
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Halaman utama website Get2Go Traveling, Traveling and the Beauty of Your Dreams Explore 'The Other Side of Jakarta'">
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="/style/home.css">
<title>Home | Get2Go</title>
</head>
<body>
<div class="backimg">
<div class="parent">
<div class="child">
<h1 class="page-title">Choose Your Destination</h1>
<form action="" method="post">
<select name="lokasi" id="lokasi" onclick="select()" required autofocus>
<option value="" id="placeholder">Pick an area ...</option>
<option value=""></option>
<option value="Jakarta Utara">Jakarta Utara</option>
<option value="Jakarta Barat">Jakarta Barat</option>
<option value="Jakarta Pusat">Jakarta Pusat</option>
<option value="Jakarta Timur">Jakarta Timur</option>
<option value="Jakarta Selatan">Jakarta Selatan</option>
</select>
<label class="option"><input type="radio" name="tipe" value="indoor" required> Indoor</label>
<label class="option"><input type="radio" name="tipe" value="outdoor" required> Outdoor</label>
<br><button type="submit" name="submit"><b>Telusuri</b></button>
</form>
</div>
</div>
</div>
<script src="/script/js/select.js"></script>
<script>document.addEventListener("contextmenu", e => e.preventDefault())</script>
</body>
</html>