-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcase3.php
42 lines (39 loc) · 1.45 KB
/
case3.php
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
<!DOCTYPE html>
<html>
<head>
<title>Marshmello [Case 3]</title>
<link rel="stylesheet" href="style/font-awesome.min.css">
<link href="style/bootstrap.min.css" rel="stylesheet">
<link href="style/front.css" rel="stylesheet">
</head>
<body>
<div class="container">
<div class="row">
<div class="span4"><img class="center-block" src="marshmello.png" alt="Marshmello" id="logo"></div>
<div class="span4"></div>
</div>
<form role="search" action="" method="GET">
<div class="row">
<div class="col-xs-6">
<div class="input-group">
<input type="text" class="form-control" name="search" placeholder="Search" value="<?php if (isset($_GET['search']) && !empty($_GET['search'])) { echo $_GET['search'];} ?>">
<span class="input-group-btn">
<button class="btn btn-primary" type="button"><i class="fa fa-microphone"></i></button>
</span>
</div>
</div>
</div>
<div class="btn-group-wrap">
<div class="btn-group">
<button type="submit" class="btn btn-primary" id="marshmello-search">Marshmello Search</button>
</div>
</div>
</form>
<?php
if (isset($_GET['search']) && !empty($_GET['search'])) {
$search = htmlspecialchars($_GET['search']);
echo "<h3>" . $search . " Not found</h3>";
}
?>
</body>
</html>