-
Notifications
You must be signed in to change notification settings - Fork 0
/
contact.php
65 lines (60 loc) · 2.64 KB
/
contact.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
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<title>Account</title>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Quicksand:wght@300&display=swap" rel="stylesheet">
<link rel="stylesheet" href="Login/login_Style.css" type="text/css">
<link rel="stylesheet" href="Contact/contact_Style.css" type="text/css">
</head>
<body>
<div class='navBar'>
<div class='navFillim'>
<ul>
<li><a href='index.php'>
<img src="llogojaPerf.png" alt ="logoja" id='logo'>
</a>
</li>
</ul>
</div>
<div class='navFund'>
<ul class='navList' id='ul2'>
<li><a href="index.php">Home</a></li>
<li><a href="subPages/Courses.php">Courses</a></li>
<li><a href="account.php">Account</a></li>
<li id="login"><a href="contact.php" id="aLog">Contact Us</a></li>
</ul>
</div>
</div>
<div class="main" id="main-div">
<form id="form" action = "Includes/contactVerify.php" method = "POST" onsubmit = "return validate();" >
<h2>Contact Us</h2>
<div class="form-element">
<label>Subject </label>
<input type="text" id="username" name="subject">
<p>Error Message</p>
</div>
<div class="form-element">
<label>Content </label>
<textarea rows = "5" cols = "20" id="textarea" name="content" ></textarea>
<p>Error Message</p>
</div>
<input type="submit" id="submit_btn" name = "SendBtn" value = "Send"></input>
<?php
if(isset($_GET['error'])){
echo '<p style = "visibility: visible; color: white; text-align: center;">';
if($_GET['error'] == 'true')
echo 'Something went wrong!</p>';
}
if(isset($_GET['success']) && $_GET['success'] == 'true'){
echo '<p style = "visibility: visible; color: white; text-align: center;">Thank you for you feedback! We\'ll get back to you soon!</p>';
}
?>
</form>
</div>
<script type = "text/javascript" src="Contact/contact_JS.js"></script>
</body>
</html>