-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.php
134 lines (119 loc) · 5.06 KB
/
index.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
124
125
126
127
128
129
130
131
132
133
<?php
include("config.php");
if($_POST['submit'])
{
$name = $_POST['name'];
$email = $_POST['email'];
$phone = $_POST['phone'];
$message= $_POST['message'];
$query=mysqli_query($con,"insert into contact(name,email,phone,message) values('$name','$email','$phone','$message')");
if($query)
{
echo "<script>alert('Queries sent');</script>";
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equive="X-UA-Compatible" contents="ie=edge">
<title>Online Examinaton in India | MyExam.com</title>
</meta>
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css2?family=Bree+Serif&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Baloo+Bhai+2:wght@500&family=Bree+Serif&display=swap" rel="stylesheet">
<link rel="stylesheet" media="screen and (max-width:1170px)" href="phone.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>
<nav id="navbar">
<div id="logo">
<img src="logo.png" alt="MyExam.com">
</div>
<ul>
<li class="item"><a href="#">Home</a></li>
<li class="item"><a href="#services-container">Examination</a></li>
<li class="item"><a href="#contact-box">Contact Us</a></li>
<li class="item"><a href="register.php">Registration</a></li>
<li class="item"><a href="adminLogin.php">Admin</a></li>
</ul>
</nav>
<section id="home">
<h1 class="h-primary">Welcome to Online Examination</h1>
<p>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Animi,
beatae quis! Consequuntur hic ab totam itaque earum repellendus error
accusantium, veritatis, beatae enim nihil atque provident a. Corporis,
ipsam temporibus.</p>
<center><button class="btn"><a href="login.php">Login</a></button></center>
</section>
<section id="services-container">
<h1 class="h-primary center">Examination</h1>
<div class="services">
<div class="box">
<img src="1.jpg" alt="">
<h2 class="h-secoundary center">Online Examinaton</h2>
<p class="center"> Lorem ipsum dolor sit amet consectetur adipisicing elit.
Unde sit ipsam eius, assumenda tempore et animi nulla odit pariatur recusandae vero autem labore,
.</p>
</div>
<div class="box">
<img src="1.jpg" alt="">
<h2 class="h-secoundary center">Online Examinaton</h2>
<p class="center"> Lorem ipsum dolor sit amet consectetur adipisicing elit.
Unde sit ipsam eius, assumenda tempore et animi nulla odit pariatur recusandae vero autem labore,
.</p>
</div>
<div class="box">
<img src="1.jpg" alt="">
<h2 class="h-secoundary center">Online Examinaton</h2>
<p class="center"> Lorem ipsum dolor sit amet consectetur adipisicing elit.
Unde sit ipsam eius, assumenda tempore et animi nulla odit pariatur recusandae vero autem labore
</p>
</div>
</div>
</section>
<!-- Sponsor -->
<center>
<div class="col-sm-4">
<h2>Connect</h2>
<a href="#" class="fa fa-facebook"></a>
<a href="#" class="fa fa-twitter"></a>
<a href="#" class="fa fa-google"></a>
<a href="#" class="fa fa-linkedin"></a>
<a href="#" class="fa fa-youtube"></a>
</div>
</center>
<!-- Contact Section -->
<section id="contact">
<h1 class="h-primary center">Contact Us</h1>
<div id="contact-box">
<form action="index.php" method="post">
<div class="form-group">
<label for="name">Name</label>
<input type="text" name="name" placeholder="Enter your name">
</div>
<div class="form-group">
<label for="name">Email Id</label>
<input type="text" name="email" placeholder="Enter your email">
</div>
<div class="form-group">
<label for="name">Phone</label>
<input type="text" name="phone" placeholder="Enter your phone number">
</div>
<div class="form-group">
<label for="name">Message</label>
<textarea name="message" cols="34" rows="10"></textarea>
</div>
</div>
<center><input class="btn" type="submit" name="submit" value="submit"></center>
</section>
</form>
<footer>
<div class="center">
Copyright © www.OnlineExam.com. All right reserved
</div>
</footer>
</body>
</html>