-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.php
123 lines (97 loc) · 3.08 KB
/
search.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<?php
session_start();
header("Cache-Control: max-age=300, must-revalidate");
include 'connect.php';
$_SESSION['name']=$_POST['name'];
if($_SERVER["REQUEST_METHOD"]=="POST")
{
$text1 = mysqli_real_escape_string($db,$_POST['text1']);
$_SESSION['next2']= mysqli_real_escape_string($db,$_POST['text2']);
}
else
{
echo "No Post";
}
?>
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="Style.css">
<link rel="icon" href="MediIcon.png">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script src="bootstrap.min.js"></script>
<style type="text/css">
.container{
background-color: #e6f9ff;
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
</script>
<style>
.button{
font-size: 30px;
border: none;
padding: 15px 32px;
text-decoration: blink;
font-family: arial;
display: inline-block;
border-radius: 10px;
}
.gobutton{
font-size: 15px;
font-style: italic;
border: none;
padding: 15px 32px;
text-decoration: none;
font-family: arial;
display: inline-block;
border-radius: 10px;
}
.text
{
padding: 15px 32px;
font-size: 15px;
font-style: italic;
}
</style>
<title>Search Medicines,Drugs,Stores</title>
</head>
<body>
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="">MediFind</a>
</div>
<ul class="nav navbar-nav">
<li class="active"><a href="#">Sign Up</a></li>
<li><a href="#">About Us</a></li>
<li><a href="#">Search Stores</a></li>
<li><a href="#">Search Medicines</a></li>
<li><a href="#">Search Drugs</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="Home.php"><span class="glyphicon glyphicon-log-in"></span> <?php echo $_SESSION['name'];?></a></li>
</ul>
</div>
</nav>
<a href="Home.php">
<img alt="MediFind" src="MediFind.png" onclick="Home.php"></a>
<font size=35 face="Liberation Serif">Search.... </font>
<div class="main">
<form action="searchbymed.php" method="post">
<button id="showmed" class="button">Search By Medicine</button><br>
<input type="text" id="appear1" placeholder="Enter the medicine" name="text1" class="text">
<input type="submit" value="Submit" id="go1" class="gobutton">
</form>
<br>
<form action="searchbystore.php" method="POST">
<button id="showstore" class="button">Search By Store</button><br>
<input type="text" id="appear2" placeholder="Enter the store" name="text2" class="text">
<input type="submit" value="Submit" id="go2" class="gobutton">
</form>
<br>
</div>
</body>
</html>